Sha256: b0f1104a97b567b5ce1154f12d2a5b7256a3538c8c3646d0ff026f89b5b44653

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

require 'eventmachine'

module RSocks
  class TargetConnectionHandler < EM::Connection

    def initialize(client)
      @client = client
    end

    def receive_data(data)
      @client.send_data(data)
    end

    def unbind
      @client.close_connection_after_writing
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
r_socks-0.1.6 lib/r_socks/target_connection_handler.rb
r_socks-0.1.5 lib/r_socks/target_connection_handler.rb