Sha256: 9a7353d1dc4f545461ae4ea90fba98e6d1b3384333ab881a3770bb1b7aa9006d
Contents?: true
Size: 194 Bytes
Versions: 3
Compression:
Stored size: 194 Bytes
Contents
require 'socket' require 'timeout' server = TCPServer.new('127.0.0.1', 5555) Timeout::timeout(60) { loop { client = server.accept line = client.gets puts line } } rescue exit 0
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kurchatov-0.0.6.pre.2 | tests/server.rb |
kurchatov-0.0.6.pre.1 | tests/server.rb |
kurchatov-0.0.5 | tests/server.rb |