Code example for Socket

Methods: connect, getInputStream, getOutputStream, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, setKeepAlive, setReuseAddress