Class: ShadowsocksRuby::Connections::UDP::RemoteServerConnection
- Inherits:
-
BackendConnection
- Object
- EventMachine::Connection
- Connection
- BackendConnection
- ShadowsocksRuby::Connections::UDP::RemoteServerConnection
- Defined in:
- lib/shadowsocks_ruby/connections/udp/remoteserver_connection.rb
Overview
A RemoteServerConnection’s job is relay data from remoteserver to client.
Constant Summary
Constants inherited from Connection
Instance Attribute Summary
Attributes inherited from BackendConnection
Attributes inherited from Connection
Instance Method Summary collapse
-
#process_hook ⇒ Object
This is Called by process loop.
Methods inherited from BackendConnection
#connection_completed, #initialize, #send_data
Methods inherited from Connection
#async_recv, #async_recv_until, #peer, #send_data, #unbind
Constructor Details
This class inherits a constructor from ShadowsocksRuby::Connections::BackendConnection
Instance Method Details
#process_hook ⇒ Object
This is Called by process loop
8 9 10 11 |
# File 'lib/shadowsocks_ruby/connections/udp/remoteserver_connection.rb', line 8 def process_hook data = packet_protocol.udp_receive_from_remoteserver(-1) plexer.packet_protocol.udp_send_to_client(data) end |