Sha256: 963f091401805b794ad69c22ff0f2d184bd7ab56fb22b2aa8b74f2e0dc8caea6

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

module Shadowsocks
  class Tunnel < EventMachine::Connection
    attr_accessor :server, :table

    def initialize server, table
      @server = server
      @table  = table
      super
    end

    def unbind
      server.close_connection_after_writing
    end

    def encrypt table, data
      server.encrypt table, data
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shadowsocks-0.2 lib/shadowsocks/tunnel.rb
shadowsocks-0.1 lib/shadowsocks/tunnel.rb