XAS::Lib::Net::Client - The network client interface for the XAS environment
my $rpc = XAS::Lib::Net::Client->new( -port => 9505, -host => 'localhost', };
This module implements a simple text orientated nework protocol. All "packets" will have an explict "\012\015" appended. This delineates the "packets" and is network netural. No attempt is made to decipher these "packets".
This initilaizes the module and can take three parameters. It doesn't actually make a network connection.
The port number to attach too.
The host to use for the connection. This can be an IP address or a hostname.
An optional timeout, it defaults to 60 seconds.
Connect to the defined socket.
Disconnect from the defined socket.
This writes a "packet" to the socket.
The "packet" to send over the socket.
This reads a "packet" from the socket.
XAS
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (C) 2012 by Kevin L. Esteb
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.