NAME

Lim::RPC::Callback - Base class of all RPC callbacks

VERSION

See Lim for version.

SYNOPSIS

    package Lim::RPC::Callback::MyCallback;

    use base qw(Lim::RPC::Callback);

METHODS

$callback = Lim::RPC::Callback::MyCallback->new(key => value...)

Create a new callback object.

cb => $callback (required)

Set the callback function related to this callback. This is set by Lim::RPC::Server depending on what protocol in incoming.

client => $client (required)

Set the Lim::RPC::Server::Client related to this callback. This is set by Lim::RPC::Server on incoming calls.

$callback->Init(...)

Called from new on object creation with the same arguments as passed to new.

Should be overloaded if you wish to do initial things on creation.

$callback->Destroy(...)

Called from DESTROY on object destruction.

Should be overloaded if you wish to do things on destruction.

$callback->cb

Return the callback.

$callback->client

Return the client.

$callback->call_def

Return the call definition set by set_call_def.

$callback->set_call_def

Set the call definition related to this callback. Returns the references to it self.

$callback->reset_timeout

Reset the timeout of the client related to this callback.

AUTHOR

Jerry Lundström, <lundstrom.jerry at gmail.com>

BUGS

Please report any bugs or feature requests to https://github.com/jelu/lim/issues.

SUPPORT

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

perldoc Lim::RPC::Callback

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Jerry Lundström.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 169:

Non-ASCII character seen before =encoding in 'Lundström,'. Assuming UTF-8