Sha256: a0b5226861c816dadc7233d06a808437e09591e1b2dd4670a17b7d7d30621989

Contents?: true

Size: 198 Bytes

Versions: 2

Compression:

Stored size: 198 Bytes

Contents

require 'rubygems'
require 'eventmachine'

module EchoServer  
  def receive_data(data)
    send_data(data)
  end
end

EventMachine.run do
  EventMachine.start_server "0.0.0.0", 8080, EchoServer
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oria-0.1.1 benchmarks/eventmachine/tcp_server.rb
oria-0.1.0 benchmarks/eventmachine/tcp_server.rb