|<B>new( [$binary_data] )B>||Creates a new Net::SAP::Packet object with default values for all the properties. Takes an optional parameter which is passed straight to parse() if given.|
|<B>parse( B>$binary_data<B> )B>||Parses a binary packet (as received from the network) and stores its data in the object. Returns non-zero if the binary data is invalid.|
|<B>B>generate()<B>B>||Generates a binary packet from the properties stored in the perl object. Returned undefined if there is a problem creating the packet. This method also calculates the message id hash field for the packet and compresses it if the compressed() field is set.|
Get or Set the family of the origin address (either ipv4 or ipv6).
Get or Set the origin address (IPv4 or IPv6 address of the host
sending the packet). Be sure to also set the address type using
Get or Set wether the packet was, or should be compressed.
Note that the payload of the SAP packet should be no more than
1024 bytes. So compression should be used is the raw data is more
Get or Set the packet type - advertisement or deletion. A delete packet
is used to instruct clients that a previously advertised session is now
no longer valid.
|<B>B>version()<B>B>||Get the SAP version number of a received packet. Usually 1 or 0. See the end of RFC2974 for a description of the difference between packet versions. All packets created using Net::SAP are version 1.|
|<B>B>message_id_hash()<B>B>||Get the Message ID Hash for the packet. The hash for a new packet is calculated when calling generate(). The hash is a 16-bit unsigned integer (0 to 65535).|
|<B>B>encrypted()<B>B>||Gets whether a packet is encrypted or not. Note that Net::SAP cant currently encrypt or de-crypt packets.|
|<B>B>encryption_key_length()<B>B>||Gets the length of the packets encryption key. Note that Net::SAP cant currently encrypt or decrypt packets.|
|<B>B>encryption_key()<B>B>||Gets the encryption key for a packet. Returns undefined value if there is no encryption key for the packet. Note that Net::SAP cant currently encrypt or de-crypt packets.|
Get or Set the packets payload type. This field should be a MIME type.
The default MIME type for packets is application/sdp.
Get or Set the packets payload.
Please report any bugs or feature requests to email@example.com, or through the web interface at <http://rt.cpan.org>. I will be notified, and then you will automatically be notified of progress on your bug as I make changes.
Nicholas Humfrey, firstname.lastname@example.org
Copyright (C) 2004-2006 University of Southampton
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.005 or, at your option, any later version of Perl 5 you may have available.
|perl v5.20.3||NET::SAP::PACKET (3)||2016-04-03|