Code example for Socket

Methods: close, isConnected, isInputShutdown, isOutputShutdown, shutdownInput, shutdownOutput