Sha256: 877c5e95c5139e5e6232143a49522cf48dbfc5336acb3a4deb03d790373526a3

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

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

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

    def unbind
      server.close_connection_after_writing
    end

    def remote
      server
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shadowsocks-0.3 lib/shadowsocks/tunnel.rb