Textseite
Lab 5 (25.3.) - Java Socket APIs
This page contains links to the code of an echo servers and clients, using either UDP or TCP.
1. UDP
Download the UDP Server and the UDP Client code.
Compile the code and execute it, first in such a way that the client is running on the same machine as the server, then on two different machines.
2. TCP
Download the TCP Server and the TCP Client code.
Compile the code and run it. Then change the code
- Modify the server so that it also prints out the IP address of the client that contacted it.
- Modify the client so that you can repeat sending strings to the echo server.
- Modify the server so that several clients can connect at the same time.
Zuletzt geändert: Tuesday, 24. March 2015, 22:36