Class: TCPSocket::SOCKSConnectionPeerAddress

Inherits:
String
  • Object
show all
Defined in:
lib/socksify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(socks_server, socks_port, peer_host) ⇒ SOCKSConnectionPeerAddress

Returns a new instance of SOCKSConnectionPeerAddress.


137
138
139
140
# File 'lib/socksify.rb', line 137

def initialize(socks_server, socks_port, peer_host)
  @socks_server, @socks_port = socks_server, socks_port
  super peer_host
end

Instance Attribute Details

#socks_portObject (readonly)

Returns the value of attribute socks_port


135
136
137
# File 'lib/socksify.rb', line 135

def socks_port
  @socks_port
end

#socks_serverObject (readonly)

Returns the value of attribute socks_server


135
136
137
# File 'lib/socksify.rb', line 135

def socks_server
  @socks_server
end

Instance Method Details

#inspectObject


142
143
144
# File 'lib/socksify.rb', line 142

def inspect
  "#{to_s} (via #{@socks_server}:#{@socks_port})"
end

#peer_hostObject


146
147
148
# File 'lib/socksify.rb', line 146

def peer_host
  to_s
end