Net::OBEX::Packet::Request::Base - base class for OBEX request packet modules.
package Net::OBEX::Packet::Request::Some; use strict; use warnings; our $VERSION = '0.001'; use Carp; use base 'Net::OBEX::Packet::Request::Base'; sub make { my $self = shift; my $headers = join '', @{ $self->headers }; # "\x00" is the opcode my $packet = "\x00" . pack( 'n', 3 + length $headers) . $headers; return $self->raw($packet); } 1; __END__
WARNING!!! This module is in an early alpha stage. It is recommended that you use it only for testing.
The module is a base class for OBEX request packet modules.
It defines a constructor (new()), as well as headers() and raw() accessors/mutators.
new()
headers()
raw()
Fork this module on GitHub: https://github.com/zoffixznet/Net-OBEX
To report bugs or request features, please use https://github.com/zoffixznet/Net-OBEX/issues
If you can't access GitHub, you can email your request to bug-Net-OBEX at rt.cpan.org
bug-Net-OBEX at rt.cpan.org
Zoffix Znet <zoffix at cpan.org> (http://zoffix.com/, http://haslayout.net/)
You can use and distribute this module under the same terms as Perl itself. See the LICENSE file included in this distribution for complete details.
LICENSE
To install Net::OBEX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OBEX
CPAN shell
perl -MCPAN -e shell install Net::OBEX
For more information on module installation, please visit the detailed CPAN module installation guide.