Code example for Socket

Methods: close, shutdownInput, shutdownOutput