Code example for Socket

Methods: connectgetInputStreamgetOutputStreamisConnected