---
name: "Net::DRI::Transport::Socket"
section: "3pm"
platform: "linux"
package: "libnet-dri-perl"
version: "0.96-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::DRI::Transport::Socket"
---

# Net::DRI::Transport::Socket(3pm)

TCP/TLS Socket connection for Net::DRI

## NAME

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

## DESCRIPTION

This module implements a socket (tcp or tls) for establishing connections in Net::DRI

## METHODS

At creation (see Net::DRI `"new_profile"`) you pass a reference to an hash, with the following available keys:

### socktype

ssl, tcp or udp

### ssl\_key\_file ssl\_cert\_file ssl\_ca\_file ssl\_ca\_path ssl\_cipher\_list ssl\_version ssl\_passwd\_cb

if `"socktype"` is 'ssl', all key materials, see IO::Socket::SSL documentation for corresponding options

### ssl\_verify

see IO::Socket::SSL documentation about verify\_mode (by default 0x00 here)

### ssl\_verify\_callback

see IO::Socket::SSL documentation about verify\_callback, it gets here as first parameter the transport object then all parameter given by IO::Socket::SSL; it is explicitly verified that the subroutine returns a true value, and if not the connection is aborted.

### remote\_host remote\_port

hostname (or IP address) & port number of endpoint

### client\_login client\_password

protocol login & password

### client\_newpassword

(optional) new password if you want to change password on login for registries handling that at connection

### protocol\_connection

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

### protocol\_data

(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.

### close\_after

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

### local\_host

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

## SUPPORT

For now, support questions should be sent to:

\<netdri@dotandco.com\>

Please also see the SUPPORT file in the distribution.

## SEE ALSO

http://www.dotandco.com/services/software/Net-DRI/

## AUTHOR

Patrick Mevzek, \<netdri@dotandco.com\>

## COPYRIGHT

Copyright (c) 2005-2010 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.
