Net::RVP - implementation of the Rendez-Vous Protocol for instant messaging
my $rvp = RVP->new( host => '1.2.3.4:80', name => 'First_Last', user => 'domain\\username', pass => 'password', site => 'machine.domain.com'); $rvp->login(); # ...
Requires host (this machine, dotted-IP acceptable, for callbacks), name ('Joe_Smith'), user ('hq\jsmith'), password, and site for server (optional ':port' at end allowed).
Optional: agent - user-agent string; renew - renewal time for subscriptions; sink - event sink object (see Net::RVP::Sink).
Try to log in, returns false on error, renewal time otherwise.
Renew login subscription. Returns new renewal time, false on error.
Log out.
Return the base address of the server e.g. http://foo.bar:port
Return local node (must be logged in) as http URL.
Return user name (short form, e.g. jsmith or bob_jones).
Return name of the remote server we're hitting, with no 'http' etc. in front.
Return local callback: (address, port) in list context, proto://address:port in scalar context.
Return our own user object.
Create and return a user object. Doesn't necessarily imply that the user exists. Name should be the short name on the server ('jsmith'), or a URL.
Create and return a session (conversation) object (see Net::RVP::Session).
Set online status ('online', 'offline', others...).
Pass in an HTTP request parsed from the notify server (how you obtain and parse incoming requests is beyond the scope of this module). It will make callbacks to methods in this object which may be overloaded as desired.
Returns an HTTP::Response object.
David Robins <dbrobins@davidrobins.net>.
Net::RVP::User, LWP::UserAgent, HTTP::Parser for parsing HTTP requests.
To install Net::RVP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::RVP
CPAN shell
perl -MCPAN -e shell install Net::RVP
For more information on module installation, please visit the detailed CPAN module installation guide.