Sha256: e895d77e2d4fc3e4d248fee89fc4dcf86f9ad2494661517b6a15d7dca85a2da8

Contents?: true

Size: 221 Bytes

Versions: 2

Compression:

Stored size: 221 Bytes

Contents

#!/usr/bin/env ruby

require 'alo7-net'

class EchoClient < Alo7::Net::Client
  def receive_data(data)
    puts data
  end
end

Alo7::Net.run do
  c = EchoClient.connect 'localhost', 3000
  c.send_data 'Hello World!'
end

Version data entries

2 entries across 2 versions & 1 rubygems

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