Class: SOCKSSocket
- Inherits:
-
Object
- Object
- SOCKSSocket
- Defined in:
- lib/net/dns/resolv-replace.rb
Instance Method Summary collapse
-
#initialize(host, serv) ⇒ SOCKSSocket
constructor
A new instance of SOCKSSocket.
-
#original_resolv_initialize ⇒ SOCKSSocket
A new instance of SOCKSSocket.
Constructor Details
#initialize(host, serv) ⇒ SOCKSSocket
Returns a new instance of SOCKSSocket.
63 64 65 |
# File 'lib/net/dns/resolv-replace.rb', line 63 def initialize(host, serv) original_resolv_initialize(IPSocket.getaddress(host), port) end |
Instance Method Details
#original_resolv_initialize ⇒ SOCKSSocket
Returns a new instance of SOCKSSocket.
62 63 64 |
# File 'lib/net/dns/resolv-replace.rb', line 62 def initialize(host, serv) original_resolv_initialize(IPSocket.getaddress(host), port) end |