Sha256: 57b12be455bfaebd898a2574be1beb2d1b43fb5c796cfc44be7f98cf3477e3d0
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require 'eventmachine' module RSocks class TargetConnectionHandler < EM::Connection def initialize(client, data) @client = client @init_data = data end def post_init proxy_incoming_to(@client,60000) end def connection_completed send_data @init_data @init_data = nil end def proxy_target_unbound close_connection end def unbind @client.close_connection_after_writing end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r_socks-0.1.7 | lib/r_socks/target_connection_handler.rb |