Skip to content

Instantly share code, notes, and snippets.

@miloshadzic
Created January 21, 2011 23:41
Show Gist options
  • Save miloshadzic/790656 to your computer and use it in GitHub Desktop.
Save miloshadzic/790656 to your computer and use it in GitHub Desktop.
TCPSocket.new
- requires a hostname and a port as arguments
- refuses the connection when there is no server to connect to (FAILED - 1)
- connects to a listening server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment