Net::BEEP::Lite::Frame
my $frame1 = Net::BEEP::Lite::Frame->new (Header => $header, Payload => $payload); my $frame2 = Net::BEEP::Lite::Frame->new (Buffer => $header_plus_payload); my $frame3 = Net::BEEP::Lite::Frame->new (Type => "MSG", Msgno => $message_number, Size => $size, More => '.', Seqno => $sequence_number, Channel => $channel_number);
"Net::BEEP::Lite::Frame" is a class used for describing BEEP frames, the underlying unit of transport in BEEP. This is generally not used in user code. Instead, it is used internally by the Net::BEEP::Lite::Session class for sending and receiving messages.
Net::BEEP::Lite::Session
This is the main constructor for the class. It takes a named argument list. The following arguments are supported:
An unparsed frame header (e.g, "MSG 1 23 . 15563 49")
The frame payload (the frame minus the header and trailer).
The frame type: one of (MSG, RPY, ERR, ANS, NUL, SEQ).
The frame's message number.
The size of the payload (not including trailer)
Either "." (no more), or "*" (more). This is a flag that indicates whether the message being described by this frame is complete.
The sequence number of this frame. This is generally the number of octets already seen on the given channel.
The channel number.
Returns the type of the frame. (e.g., "MSG", "RPY, "SEQ", etc.).
Returns the message number of the frame.
Returns the size of the frame. If there is a payload, it will return the size of that. In the absence of a payload, it will whatever it has been set to (presumably by parsing a frame header).
Returns either "." (no more) or "*" (more), a flag indicating whether or not this frame completes the message.
Return true if this is a completing frame. I.e., return true if the more field is ".".
Returns the sequence number of the frame.
Returns the answer number. This only has meaning for ANS frames.
Returns the channel number of the frame.
Return the payload of the frame.
Returns the acknowledgment number of the frame. (SEQ frames only).
Returns the window size advertised by the frame. (SEQ frames only).
Sets this frame's payload to $payload.
Returns the string form of the header. This is valid for the wire.
Returns the string form of the entire frame (header, payload, and trailer). This valid for the wire.
To install Net::BEEP::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::BEEP::Lite
CPAN shell
perl -MCPAN -e shell install Net::BEEP::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.