Sha256: d41a5d69ee9bf3eaccf39b7d8aebefd35402bcc6a8aa45c5fadeeab4acc01843

Contents?: true

Size: 179 Bytes

Versions: 2

Compression:

Stored size: 179 Bytes

Contents

#!/usr/bin/env ruby

require 'alo7-net'

class EchoServer < Alo7::Net::Server
  def receive_data(data)
    send_data data
  end
end

Alo7::Net.run do
  EchoServer.listen 3000
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alo7-net-0.1.1 examples/echo/server.rb
alo7-net-0.1.0 examples/echo/server.rb