NAME

Log::UDP::Server - a simple way to receive and handle structured messages via UDP

VERSION

Version 0.02

SYNOPSIS

use Log::UDP::Server;

my $server = Log::UDP::Server->new( handler => sub { warn( $_[0] ); } );
$server->run();

DESCRIPTION

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.

EXPORT

This is an object-oriented module. It has no exports.

CLASS FIELDS

handler

The handler that is used to process each message as it is received.

server_address

The address you want to listen on.

server_port

The port you want to listen on.

server_socket

The listening socket used for communication.

FUNCTIONS

new

Instantiates a new server with the specified message handler.

run

Starts the server and listens for incoming datagrams on the specified socket.

INHERITED METHODS

deserialize
deserializer
serialize
serializer
serializer_module
throws_exception

All of these methods are inherited from Data::Serializable. Read more about them there.

AUTHOR

Robin Smidsrød, <robin at smidsrod.no>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Log::UDP::Server

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2009 Robin Smidsrø.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 171:

Non-ASCII character seen before =encoding in 'Smidsrød,'. Assuming UTF-8