Class: TCPSocket::SOCKSConnectionPeerAddress
- Inherits:
-
String
- Object
- String
- TCPSocket::SOCKSConnectionPeerAddress
- Defined in:
- lib/socksify.rb
Instance Attribute Summary collapse
-
#socks_port ⇒ Object
readonly
Returns the value of attribute socks_port.
-
#socks_server ⇒ Object
readonly
Returns the value of attribute socks_server.
Instance Method Summary collapse
-
#initialize(socks_server, socks_port, peer_host) ⇒ SOCKSConnectionPeerAddress
constructor
A new instance of SOCKSConnectionPeerAddress.
- #inspect ⇒ Object
- #peer_host ⇒ Object
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_port ⇒ Object (readonly)
Returns the value of attribute socks_port.
135 136 137 |
# File 'lib/socksify.rb', line 135 def socks_port @socks_port end |
#socks_server ⇒ Object (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
#inspect ⇒ Object
142 143 144 |
# File 'lib/socksify.rb', line 142 def inspect "#{to_s} (via #{@socks_server}:#{@socks_port})" end |
#peer_host ⇒ Object
146 147 148 |
# File 'lib/socksify.rb', line 146 def peer_host to_s end |