Code example for Socket

Methods: closegetInetAddressgetOutputStreamgetPortisConnected