A simple command line chat application that uses the User Datagram Protocol (UDP). The app consists of clients that send messages and a server that receives and processes these messages.
- Multi-client Support: Connect up to 10 clients simultaneously.
- Real-time Messaging: Send and receive messages in real-time.
- User Registration: Clients can register with a name and receive a unique ID.
- Command Support: Clients can execute commands to leave the chatroom or view all participants.
- Cross-Platform: Compatible with both Windows and Unix-like systems.
-
Clone the repository:
git clone https://github.com/yourusername/udp-chatroom.git cd udp-chatroom -
Optionally, compile the application using the provided Makefile:
make -C chatroom
-
Build the project and start the server and two clients on
127.0.0.1:3000with./launch.batfor windows or./launch.shfor UNIX. -
OR build and start them separately:
cd chatroom make ./client <serverrt> ./server <port>
-
Follow the prompts to register and type your messages directly in the terminal.
-
As client, type
!hfor help. -
Optionally, send messages as server from server console.