Class: Shadowsocks::Tunnel
- Inherits:
-
Connection
- Object
- EventMachine::Connection
- Connection
- Shadowsocks::Tunnel
- Defined in:
- lib/shadowsocks/tunnel.rb
Direct Known Subclasses
Local::DirectConnector, Local::ServerConnector, Server::RequestConnector
Constant Summary
Constants inherited from Connection
Instance Attribute Summary collapse
-
#server ⇒ Object
Returns the value of attribute server.
Attributes inherited from Connection
Instance Method Summary collapse
-
#initialize(server, crypto) ⇒ Tunnel
constructor
A new instance of Tunnel.
- #remote ⇒ Object
- #unbind ⇒ Object
Constructor Details
#initialize(server, crypto) ⇒ Tunnel
Returns a new instance of Tunnel.
5 6 7 8 9 |
# File 'lib/shadowsocks/tunnel.rb', line 5 def initialize server, crypto @server = server @crypto = crypto super end |
Instance Attribute Details
#server ⇒ Object
Returns the value of attribute server.
3 4 5 |
# File 'lib/shadowsocks/tunnel.rb', line 3 def server @server end |
Instance Method Details
#remote ⇒ Object
15 16 17 |
# File 'lib/shadowsocks/tunnel.rb', line 15 def remote server end |
#unbind ⇒ Object
11 12 13 |
# File 'lib/shadowsocks/tunnel.rb', line 11 def unbind server.close_connection_after_writing end |