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
newon object creation with the same arguments as passed tonew.Should be overloaded if you wish to do initial things on creation.
 - $callback->Destroy(...)
 - 
Called from
DESTROYon object destruction.Should be overloaded if you wish to do things on destruction.
 - $callback->cb
 - 
Return the callback.
 - $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.
 - $callback->request
 - 
Return the HTTP::Request object associated with the callback, may return undef if there isnt any.
 
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:
Lim issue tracker (report bugs here)
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2012-2013 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.