Code example for Socket

Methods: getInetAddress, getPort, hashCode