Sha256: 7e7da9b22679fd2b2c3a95357fe8765799a15b65325d2db589d9d275aa531364

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

module ShadowsocksRuby
  module Connections
    module UDP
      # (see TCP::ClientConnection)
      module DestinationConnection
        include ShadowsocksRuby::Connections::Connection
        include ShadowsocksRuby::Connections::BackendConnection

        # (see TCP::ClientConnection#process_hook)
        def process_hook
          data = packet_protocol.udp_receive_from_destination(-1)
          plexer.packet_protocol.udp_send_to_localbackend(data)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shadowsocks_ruby-0.1.2 lib/shadowsocks_ruby/connections/udp/destination_connection.rb
shadowsocks_ruby-0.1.1 lib/shadowsocks_ruby/connections/udp/destination_connection.rb
shadowsocks_ruby-0.1.0 lib/shadowsocks_ruby/connections/udp/destination_connection.rb