Log::UDP::Server - a simple way to receive and handle structured messages via UDP
Version 0.02
use Log::UDP::Server; my $server = Log::UDP::Server->new( handler => sub { warn( $_[0] ); } ); $server->run();
This module enables you to receive a message (simple string or complicated object) over a UDP socket. An easy way to send a structured message is to use Log::UDP::Client. The message received will automatically be handled by the specified callback.
This is an object-oriented module. It has no exports.
The handler that is used to process each message as it is received.
The address you want to listen on.
The port you want to listen on.
The listening socket used for communication.
Instantiates a new server with the specified message handler.
Starts the server and listens for incoming datagrams on the specified socket.
All of these methods are inherited from Data::Serializable. Read more about them there.
Robin Smidsrød, <robin at smidsrod.no>
<robin at smidsrod.no>
Please report any bugs or feature requests to bug-log-udp-server at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Log-UDP-Server. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-log-udp-server at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Log::UDP::Server
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Log-UDP-Server
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Log-UDP-Server
CPAN Ratings
http://cpanratings.perl.org/d/Log-UDP-Server
Search CPAN
http://search.cpan.org/dist/Log-UDP-Server/
Copyright 2009 Robin Smidsrød.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Log::UDP::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::UDP::Server
CPAN shell
perl -MCPAN -e shell install Log::UDP::Server
For more information on module installation, please visit the detailed CPAN module installation guide.