module ShadowsocksRuby::Connections::UDP::LocalBackendConnection
(see TCP::ClientConnection
)
Public Instance Methods
process_first_packet()
click to toggle source
# File lib/shadowsocks_ruby/connections/udp/localbackend_connection.rb, line 9 def process_first_packet address_bin = packet_protocol.udp_receive_from_localbackend(-1) host, port = Util::parse_address_bin(address_bin) create_plexer(host, port, DestinationConnection) class << self alias process_hook process_other_packet end end
Also aliased as: process_hook
process_other_packet()
click to toggle source
# File lib/shadowsocks_ruby/connections/udp/localbackend_connection.rb, line 21 def process_other_packet data = packet_protocol.udp_receive_from_localbackend(-1) plexer.packet_protocol.udp_send_to_destination(data) end