public final class EchoTCPClient extends DiscardTCPClient
connect
and call getOutputStream()
to
retrieve the echo output stream and
getInputStream()
to get the echo input stream.
Don't close either stream when you're done using them. Rather, call
disconnect
to clean up properly.
EchoUDPClient
,
DiscardTCPClient
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_PORT |
The default echo port.
|
_defaultPort_, _input_, _isConnected_, _output_, _socket_, _socketFactory_, _timeout_, NETASCII_EOL
Constructor | Description |
---|---|
EchoTCPClient() |
The default EchoTCPClient constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.io.InputStream |
getInputStream() |
Returns an InputStream from which you may read echoed data from
the server.
|
getOutputStream
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, verifyRemote
public static final int DEFAULT_PORT
public EchoTCPClient()
DEFAULT_PORT
.public java.io.InputStream getInputStream()
disconnect
to clean up properly.