Module: ShadowsocksRuby::Connections::UDP::RemoteServerConnection
- Includes:
- BackendConnection, Connection
- Defined in:
- lib/shadowsocks_ruby/connections/udp/remoteserver_connection.rb
Overview
Mixed-in with an EventMachine::Connection Object to use this.
Constant Summary
Constants included from Connection
Instance Attribute Summary
Attributes included from BackendConnection
Attributes included from Connection
Instance Method Summary collapse
-
#process_hook ⇒ Object
This is Called by process loop.
Methods included from BackendConnection
#connection_completed, #initialize, #send_data
Methods included from Connection
#async_recv, #async_recv_until, #peer, #send_data, #unbind
Instance Method Details
#process_hook ⇒ Object
This is Called by process loop
10 11 12 13 |
# File 'lib/shadowsocks_ruby/connections/udp/remoteserver_connection.rb', line 10 def process_hook data = packet_protocol.udp_receive_from_remoteserver(-1) plexer.packet_protocol.udp_send_to_client(data) end |