Sha256: c190b27a9e5bac7e7ff7ff48625b1497764fe89b83bc60da0d3ed57bb522be4a

Contents?: true

Size: 194 Bytes

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
kurchatov-0.0.5.pre5 tests/server.rb
kurchatov-0.0.5.pre4 tests/server.rb
kurchatov-0.0.5.pre2 tests/server.rb
kurchatov-0.0.5.pre1 tests/server.rb
kurchatov-0.0.4 tests/server.rb
kurchatov-0.0.4d tests/server.rb
kurchatov-0.0.4c tests/server.rb
kurchatov-0.0.4b tests/server.rb
kurchatov-0.0.3 tests/server.rb