Code example for Socket

Methods: bindconnectgetOutputStreamisConnected