Net::DRI::Transport::Socket - TCP/TLS Socket connection for Net::DRI
This module implements a socket (tcp or tls) for establishing connections in Net::DRI
At creation (see Net::DRI new_profile) you pass a reference to an hash, with the following available keys:
new_profile
do we open the connection right now (0) or later (1)
time to wait (in seconds) for server reply
ssl, tcp or udp
if socktype is 'ssl', all key materials
socktype
see IO::Socket::SSL documentation about verify_mode (by default 0x00 here) and verify_callback (used only if provided)
hostname (or IP address) & port number of endpoint
protocol login & password
(optional) new password if you want to change password on login for registries handling that at connection
Net::DRI class handling protocol connection details. (Ex: Net::DRI::Protocol::RRP::Connection or Net::DRI::Protocol::EPP::Connection)
Net::DRI::Protocol::RRP::Connection
Net::DRI::Protocol::EPP::Connection
(optional) opaque data given to protocol_connection class. For EPP, a key login_service_filter may exist, whose value is a code ref. It will be given an array of services, and should give back a similar array; it can be used to filter out some services from those given by the registry.
number of protocol commands to send to server (we will automatically close and re-open connection if needed)
either a reference to something that have a print() method or a filehandle (ex: \*STDERR or an anonymous filehandle) on something already opened for write ; if defined, all exchanges (messages sent to server, messages received from server) will be printed to this filehandle
(optional) the local address (hostname or IP) you want to use to connect
(optional) code reference of a subroutine generating transaction id ; if not defined, Net::DRI::Util::create_trid_1 is used
For now, support questions should be sent to:
<netdri@dotandco.com>
Please also see the SUPPORT file in the distribution.
http://www.dotandco.com/services/software/Net-DRI/
Patrick Mevzek, <netdri@dotandco.com>
Copyright (c) 2005,2006,2007,2008 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See the LICENSE file that comes with this distribution for more details.
To install Net::DRI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DRI
CPAN shell
perl -MCPAN -e shell install Net::DRI
For more information on module installation, please visit the detailed CPAN module installation guide.