ewaters / net-amqp Goto Github PK
View Code? Open in Web Editor NEWImplementation of the AMQ Protocol in Perl
Home Page: http://code.xmission.com/
License: Other
Implementation of the AMQ Protocol in Perl
Home Page: http://code.xmission.com/
License: Other
NAME Net::AMQP - Advanced Message Queue Protocol (de)serialization and representation SYNOPSIS use Net::AMQP; Net::AMQP::Protocol->load_xml_spec('amqp0-8.xml'); ... my @frames = Net::AMQP->parse_raw_frames(\$input); ... foreach my $frame (@frames) { if ($frame->can('method_frame') && $frame->method_frame->isa('Net::AMQP::Protocol::Connection::Start')) { my $output = Net::AMQP::Frame::Method->new( channel => 0, method_frame => Net::AMQP::Protocol::Connection::StartOk->new( client_properties => { ... }, mechanism => 'AMQPLAIN', locale => 'en_US', response => { LOGIN => 'guest', PASSWORD => 'guest', }, ), ); print OUT $output->to_raw_frame(); } } DESCRIPTION This module implements the frame (de)serialization and representation of the Advanced Message Queue Protocol (http://www.amqp.org/). It is to be used in conjunction with client or server software that does the actual TCP/IP communication. CLASS METHODS parse_raw_frames Net::AMQP->parse_raw_frames(\$binary_payload) Given a scalar reference to a binary string, return a list of Net::AMQP::Frame objects, consuming the data in the string. Croaks on invalid input. SEE ALSO Net::AMQP::Value, Net::RabbitMQ, AnyEvent::RabbitMQ, Net::RabbitFoot, POE::Component::Client::AMQP AMQP VERSIONS AMQP 0-8 is fully supported. AMQP 0-9, 0-9-1, and 0-10 are usably supported. There are interoperability issues with table encodings because the standard disagrees with the dialects of major implementations (RabbitMQ and Qpid). For now, Net::AMQP limits itself to universally agreed table elements. See <http://www.rabbitmq.com/amqp-0-9-1-errata.html> for details. AMQP 1.0 has not been tested. TODO Address the dialect problem, either via modified spec files that completely control the wire protocol, or by programmatic request. The former has precedent (viz "qpid.amqp0-8.xml" in spec), but could cause a combinatorial explosion as more brokers and versions are added. The latter adds interface complexity. QUOTES "All problems in computer science can be solved by another level of indirection." -- David Wheeler's observation "...except for the problem of too many layers of indirection." -- Kevlin Henney's corollary COPYRIGHT Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/). Copyright (c) 2012, 2013 Chip Salzenberg and Topsy Labs (http://labs.topsy.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. AUTHOR Eric Waters <[email protected]>
Net::AMQP currently ship with AMQP-licensed spec files. The AMQP license is considered non-free by Debian (and probably others as well) so the BSD-3-clause licensed "stripped" specs should be used instead, if possible.
If you are looking into supporting 0.10 spec, then the AMQP Group do not ship stripped version of that spec, but so does seemingly the Qpid project:
Hi,
I'm trying to use Net::AMQP to talk to RabbitMQ. Everything works great so far. I do have one rabbit-specific issue that I can't really figure out.
Essentially when connecting you are able to add a "capabilities" table to the "client_properties" table. These fields are typically boolean. When I send the table with a '1' for a true value it appears that rabbit is treating it as a number.
Is there some way to force the encoding to be a boolean?
Thanks,
Eugene
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.