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

Instance 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

Instance Method Details

#original_resolv_initialize

This method is for internal use only.
[ GitHub ]

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

alias original_resolv_initialize initialize