Package examples.unix
Class echo
java.lang.Object
examples.unix.echo
This is an example program demonstrating how to use the EchoTCPClient
and EchoUDPClient classes. This program connects to the default echo
service port of a specified server, then reads lines from standard
input, writing them to the echo server, and then printing the echo.
The default is to use the TCP port. Use the -udp flag to use the UDP
port.
Usage: echo [-udp]
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
echo
public echo()
-
-
Method Details
-
echoTCP
- Throws:
IOException
-
echoUDP
- Throws:
IOException
-
main
-