Class: Net::LDAP::Connection::DefaultSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ldap/connection.rb

Overview

Wrap around Socket.tcp to normalize with other Socket initializers

Class Method Summary collapse

Class Method Details

.new(host, port, socket_opts = {}) ⇒ Object



720
721
722
# File 'lib/net/ldap/connection.rb', line 720

def self.new(host, port, socket_opts = {})
  Socket.tcp(host, port, **socket_opts)
end