XAS::Lib::Stomp::Parse - Create a STOMP Frame From a Buffer
use XAS::Lib::Stomp::Parser; my $parser = XAS::Lib::Stomp::Parser->new( -target => '1.0', ); while (my $buffer = read()) { if (my $frame = $parser->parse($buffer)) { # do something... } }
This module creates STOMP frames from a buffer. STOMP is the Streaming Text Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP and Represented by the symbol :ttmp). It's a simple and easy to implement protocol for working with Message Orientated Middleware from any language. This module supports v1.0, v1.1 and v1.2 frames with limited interoperability between the frame types.
A STOMP frame consists of a command, a series of headers and a body.
Creates a new parser. It can take the following parameters:
Specify a STOMP protocol version number. It currently supports 1.0, 1.1 and 1.2, defaulting to 1.0.
Returns the contents of the internal buffer.
For more information on the STOMP protocol, please refer to: http://stomp.github.io/ .
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (C) 2014 Kevin L. Esteb
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
See http://dev.perl.org/licenses/ for more information.
1 POD Error
The following errors were encountered while parsing the POD:
L<> starts or ends with whitespace
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.