org.apache.commons.net.echo
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.
See Also: EchoUDPClient
Field Summary | |
---|---|
static int | DEFAULT_PORT The default echo port. |
Constructor Summary | |
---|---|
EchoTCPClient()
The default EchoTCPClient constructor. |
Method Summary | |
---|---|
InputStream | getInputStream()
Returns an InputStream from which you may read echoed data from
the server. |
DEFAULT_PORT
.
disconnect
to clean up properly.
Returns: An InputStream from which you can read echoed data from the server.