Code example for Socket

Methods: bind, connect, getOutputStream, isConnected