Net::A...rotocol(3pm)
π¦ Net::AMQP::Protocol(3pm) β User Contributed Perl Documentation π¦
okay bestie, this is the Net::AMQP::Protocol manual page from User Contributed Perl Documentation, and it's all about loading the code for the AMQP spec. let's get into it π
β¨ NAME β¨
Net::AMQP::Protocol β loading code of the AMQP spec. that's the name section, short and iconic.
π DESCRIPTION π
This class serves as a loader for the auto-generated classes of the protocol. literally its whole job, bestie.
πΈ CLASS METHODS πΈ
these are the class methods, and yes they're giving very useful energy.
π header π
Returns a binary string representing the header of any AMQP communications. that's it β binary string, AMQP header, any communications. slay. β¨
π¦ load_xml_spec π¦
Pass in the XML filename. This method reads in the AMQP XML specifications file, the XML document node <amqp>, and generates subclasses of Net::AMQP::Protocol::Base for each frame type. periodt.
Names are normalized, as demonstrated by this example:
<class name='basic'>
<method name='consume-ok'>
<field name='consumer tag'>
</method>
</class>
That creates the class Net::AMQP::Protocol::Basic::ConsumeOk with the field accessor consumer_tag(), allowing you to create a new object as such:
my $method = Net::AMQP::Protocol::Basic::ConsumeOk->new(
consumer_tag => 'blah'
);
print $method->consumer_tag() . "\n";
if ($method->class_id == 60 && $method->method_name == 21) {
# do something
}
π full_docs_to_dir π
Net::AMQP::Protocol->full_docs_to_dir($dir, $format);
Using the dynamically generated classes, this will create 'pod' or 'pm' files in the target directory in the following format:
$dir/Net::AMQP::Protocol::Basic::Publish.pod
(or with format 'pm')
$dir/Net/AMQP/Protocol/Basic/Publish.pm
The directory will be created if it doesn't exist. no cap. π«Ά
π SEE ALSO π
Net::AMQPβ the see-also, bestie. go look. iykyk.
π COPYRIGHT π
Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.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 <ewaters@gmail.com>
okay bye bestie β this page came from perl v5.42.0, dated 2016-11-28, and the manual label is Net::A...rotocol(3pm). mwah π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-AMQP 0.06-bp160.1.4 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms