Net::Async::Tangence::Client - connect to a Tangence server using IO::Async
Net::Async::Tangence::Client
Tangence
IO::Async
This subclass of Net::Async::Tangence::Protocol connects to a Tangence server, allowing the client program to access exposed objects in the server. It is a concrete implementation of the Tangence::Client mixin.
Tangence::Client
The following documentation concerns this specific implementation of the client; for more general information on the Tangence-specific parts of this class, see instead the documentation for Tangence::Client.
The following named parameters may be passed to new or configure:
new
configure
The identity string to send to the server.
Default error-handling policy for method calls. If set to either of the strings carp or croak then a CODE ref will be created that invokes the given function from Carp; otherwise must be a CODE ref.
carp
croak
Carp
Connects to a Tangence server at the given URL.
Takes the following named arguments:
Invoked once the connection to the server has been established.
$on_connected->( $client )
Invoked once the registry and root object proxies have been obtained from the server. See the documentation the Tangence::Client tangence_connected method.
tangence_connected
The following URL schemes are recognised:
exec
Directly executes the server as a child process. This is largely provided for testing purposes, as the server will only run for this one client; it will exit when the client disconnects.
exec:///path/to/command?with+arguments
The URL's path should point to the required command, and the query string will be split on + signs and used as the arguments. The authority section of the URL will be ignored, so may be left empty.
+
ssh
A convenient wrapper around the exec scheme, to connect to a server running remotely via ssh.
ssh://host/path/to/command?with+arguments
The URL's authority section will give the SSH server (and optionally username), and the path and query sections will be used as for exec.
tcp
Connects to a server via a TCP socket.
tcp://host:port/
The URL's authority section will be used to give the server's hostname and port number. The other sections of the URL will be ignored.
unix
Connects to a server via a UNIX local socket.
unix:///path/to/socket
The URL's path section will give the path to the local socket. The other sections of the URL will be ignored.
Paul Evans <leonerd@leonerd.org.uk>
To install Net::Async::Tangence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Tangence
CPAN shell
perl -MCPAN -e shell install Net::Async::Tangence
For more information on module installation, please visit the detailed CPAN module installation guide.