Create a gist now

Instantly share code, notes, and snippets.

Sample TCP Test-Server for a Ruboto Article
require 'socket'
server = TCPServer.new('',1234)
loop do
socket = server.accept
while line = socket.gets
puts line
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment