Sha256: 90a47cc3206e99f2607c41cc1c65ecaba03ed45ec29fa91ab89fb9ea09f3c7b8

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

module EventMachine
  module Protocols
    class ServerConnection < Connection
      def self.request(host, port, client_side)
        EventMachine.connect(host, port, self, client_side)
      end

      def initialize(conn)
        @client_side = conn
      end

      def receive_data(data)
        # p data
        @client_side.send_data(data)
      end

      def unbind
        @client_side.close_connection_after_writing
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mojombo-proxymachine-0.1.0 lib/proxymachine/server_connection.rb
mojombo-proxymachine-0.1.1 lib/proxymachine/server_connection.rb
mojombo-proxymachine-0.1.2 lib/proxymachine/server_connection.rb
mojombo-proxymachine-0.1.3 lib/proxymachine/server_connection.rb
mojombo-proxymachine-0.2.0 lib/proxymachine/server_connection.rb