Code example for Socket

Methods: closeconnectgetInputStreamgetOutputStream