Sha256: 04421de72f88f78e4a815cb0452267c64cd84d2a90a5d73edfe2a3dae5833f32

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

require 'rubygems'
require 'eventmachine'

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

EventMachine.run do
  EventMachine.open_datagram_socket "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/udp_server.rb
oria-0.1.0 benchmarks/eventmachine/udp_server.rb