Introduction with Sample Code: Networking Using object-oriented socket library require 'socket' print TCPSocket.open("localhost", "daytime").read