Net::DRI::Transport::Socket - TCP/TLS Socket connection for Net::DRI


The following options are available at creation:

  • defer : do we open the connection right now (0) or later (1)

  • timeout : time to wait (in seconds) for server reply

  • socktype : ssl or tcp

  • ssl_key_file ssl_cert_file ssl_ca_file ssl_ca_path ssl_cipher_list : if socktype is 'ssl', all key materials

  • ssl_verify ssl_verify_callback : see IO::Socket::SSL documentation about verify_mode (by default 0x00 here) and verify_callback (used only if provided)

  • remote_host / remote_port : hostname (or IP address) & port number of endpoint

  • client_login / client_password : protocol login & password

  • protocol_connection : Net::DRI class handling protocol connection details. (Ex: Net::DRI::Protocol::RRP::Connection or Net::DRI::Protocol::EPP::Connection)

  • close_after : number of protocol commands to send to server (we will automatically close and re-open connection if needed)

  • log_fh : 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

  • local_host (optional) : the local address (hostname or IP) you want to use to connect

  • trid (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:


Please also see the SUPPORT file in the distribution.



Patrick Mevzek, <>


Copyright (c) 2005,2006,2007 Patrick Mevzek <>. 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.