POEx::ProxySession::MessageSender - ProxySession utility Role for sending message
version 1.102760
POEx::ProxySession::MessageSender is a utility role that both Client and Server consume to provide common semantics to sending messages.
pending stores context related data of messages where a result is expected.
Access this attribute via the following methods:
handles => { get_pending => 'get', set_pending => 'set', delete_pending => 'delete', count_pending => 'count', has_pending => 'exists', all_pending => 'values', }
queue holds all of the queues for the various connected wheels. If a message is unable to be immediately delivered to a wheel, it will go into that wheel's queue.
Each queue is merely an arrayref of messages to be delivered.
returns (Int)
This method returns the next message id to be used.
(Bool :$success, ProxyMessage :$original, Ref :$payload?, WheelID :$wheel_id) is Event
This is a convenience method for sending result messages to the original sender.
(Str :$type, Ref :$payload, WheelID :$wheel_id) is Event
This method creates a message with the provided payload and delivers it via the connection that wheel_id references.
(ProxyMessage :$message,WheelID :$wheel_id, SessionID :$return_session,Str :$return_event,Ref :$tag?) is Event
This method sends a message, and also stores context information related to the message including where to send the result.
Nicholas Perez <nperez@cpan.org>
This software is copyright (c) 2010 by Nicholas Perez.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POEx::ProxySession, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::ProxySession
CPAN shell
perl -MCPAN -e shell install POEx::ProxySession
For more information on module installation, please visit the detailed CPAN module installation guide.