NAME

Mojo::SNMP::Dispatcher - Instead of Net::SNMP::Dispatcher

DESCRIPTION

This module works better with Mojo::IOLoop since it register the IO::Socket::INET sockets in with the mojo reactor.

ATTRIBUTES

ioloop

Holds a Mojo::IOLoop object. Same as "ioloop" in Mojo::SNMP.

message_processing

Holds an instance of Net::SNMP::MessageProcessing.

debug

Does nothing. Use MOJO_SNMP_DEBUG=1 instead to get debug information.

error

Holds the last error.

connections

Holds the number of active sockets.

METHODS

send_pdu

This method will send a PDU to the SNMP server.

return_response_pdu

No idea what this does (?)

msg_handle_alloc

No idea what this does (?)

schedule

Used to schedule events at a given time. Use "timer" in Mojo::IOLoop to do the heavy lifting.

register

Register a new transport object with Mojo::IOLoop::Reactor.

deregister

The opposite of "register".

COPYRIGHT & LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Jan Henning Thorsen - jhthorsen@cpan.org