Usage: ./server <port number>
- Use multi-thread to handle requests from clients.
- List all the members and chat room online, client can choose which room to join.
- Handle clients request:
- Send messages to the member who in the same group。
- Decide person or group to receive the messages
Usage: ./client <Server IP> <Port number>
Connect to server.
Handle input:
- <Message>
Send the messages to the group - /W <Name or room> <Message>
Decide person or group to receive the messages - Bye
Disconnection
Example enviroment:
Construct 4 host on the mininet and they can “ping” each other.
h1 is server
h2 h3 h4 is client