Zoffix Znet > Net-OBEX-1.001001 > Net::OBEX::Packet::Request::Abort

Download:
Net-OBEX-1.001001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.001001   Source  

NAME ^

Net::OBEX::Packet::Request::Abort - create OBEX protocol Abort request packets.

SYNOPSIS ^

    use Net::OBEX::Packet::Request::Abort;

    my $aborts = Net::OBEX::Packet::Request::Abort->new(
        headers => [ $bunch, $of, $raw, $headers ],
    );

    my $abort_packet = $aborts->make;

    $aborts->headers([]); # reset headers.

    my $abort_packet2 = $aborts->make;

DESCRIPTION ^

WARNING!!! This module is in an early alpha stage. It is recommended that you use it only for testing.

The module provides means to create OBEX protocol Abort (0xFF) packets. It is used internally by Net::OBEX::Packet::Request module and you probably want to use that instead.

CONSTRUCTOR ^

new

    $pack = Net::OBEX::Packet::Request::Abort->new;

    $pack2 = Net::OBEX::Packet::Request::Abort->new(
        headers => [ $some, $raw, $headers ]
    );

Returns a Net::OBEX::Packet::Request::Abort object, takes one optional headers argument value of which is an arrayref of raw OBEX packet headers. See Net::OBEX::Packet::Headers if you want to create those.

METHODS ^

make

    my $raw_packet = $pack->make;

Takes no arguments, returns a raw OBEX packet ready to go down the wire.

raw

    my $raw_packet = $pack->raw;

Takes no arguments, must be called after make() call, returns the raw OBEX packet which was made with last make() (i.e. the last return value of make()).

headers

    my $headers_ref = $pack->headers;

    $pack->headers( [ $bunch, $of, $raw, $headers ] );

Returns an arrayref of currently set OBEX packet headers. Takes one optional argument which is an arrayref, elements of which are raw OBEX packet headers. See Net::OBEX::Packet::Headers if you want to create those. If you want a packet with no headers use an empty arrayref as an argument.

REPOSITORY ^

Fork this module on GitHub: https://github.com/zoffixznet/Net-OBEX

BUGS ^

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

AUTHOR ^

Zoffix Znet <zoffix at cpan.org> (http://zoffix.com/, http://haslayout.net/)

LICENSE ^

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.

syntax highlighting: