123456789_123456789_123456789_123456789_123456789_

Class: TCPSocket

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::IPSocket
Instance Chain:
self, ::IPSocket
Inherits: IPSocket
Defined in: lib/resolv-replace.rb

Class Method Summary

Constructor Details

.new(host, serv, *rest) ⇒ TCPSocket

[ GitHub ]

  
# File 'lib/resolv-replace.rb', line 23

def initialize(host, serv, *rest)
  rest[0] = IPSocket.getaddress(rest[0]) if rest[0]
  original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
end