Skip to content

Instantly share code, notes, and snippets.

@ericsaboia
Created September 21, 2011 12:38
Show Gist options
  • Save ericsaboia/1231926 to your computer and use it in GitHub Desktop.
Save ericsaboia/1231926 to your computer and use it in GitHub Desktop.
TCPSocket Client
socket = TCPSocket.new('localhost', 8081)
socket.write(configs)
stream = ""
while data = socket.read(1024)
stream << data
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment