HomePage
Menu
Site Map
|
Socket programming
- Make a socket program based on the following description:
- Make a server and two clients
- The server sends a hello message to clients when the clients connect to the server.
- (ex.) to client 1: "Hello Client 1." to client 2: "Hello Client 2."
- Client 2 has information about random integer between 0 - 50.
- Client 1 repeats to send a message (including random integer between 0 - 50) to the server and the server sends the received message to client 2.
- If the random integer of client 1 is equal to client 2, client 2 sends a success message to the server.
- If the server has received the success message, client 1 terminates the connection.
|