EchoTCPClientpublic class DiscardTCPClient extends SocketClient
connect
and call getOutputStream() to
retrieve the discard output stream. Don't close the output stream
when you're done writing to it. Rather, call
disconnect
to clean up properly.
DiscardUDPClient| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_PORT |
The default discard port.
|
_defaultPort_, _input_, _isConnected_, _output_, _socket_, _socketFactory_, _timeout_, NETASCII_EOL| Constructor | Description |
|---|---|
DiscardTCPClient() |
The default DiscardTCPClient constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.io.OutputStream |
getOutputStream() |
Returns an OutputStream through which you may write data to the server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_connectAction_, connect, connect, connect, connect, connect, connect, disconnect, getDefaultPort, getDefaultTimeout, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSoLinger, getSoTimeout, getTcpNoDelay, isConnected, setDefaultPort, setDefaultTimeout, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemotepublic static final int DEFAULT_PORT
public DiscardTCPClient()
DEFAULT_PORT .public java.io.OutputStream getOutputStream()
disconnect
to clean up properly.