UB 2018Fall CSE589 project 1
Develop the client and server components of a text chat application, consisting of one chat server and multiple chat clients over TCP connections.
- Bilin Shi
- Wenqi Li
In this project, TCP sockets are ONLY allowed to be used both for sending and broadcasting, select() function is used for handling multiple socket connections.
Commands that need to be implemented are listed below:
- AUTHOR
- IP
- PORT
- LIST
- STATISTICS
- BLOCKED
- [EVENT]: Message Relayed
- LOGIN
- REFRESH
- SEND
- BROADCAST
- BLOCK
- UNBLOCK
- LOGOUT
- EXIT
- [EVENT]: Message Received
Linux/Unix: g++ 4.8 or newer version
After download the project, enter the main directory and execute the following commands:
mkdir object
make
Then run
./assignment1 [s/c] [port]
Here the first parameter means the type of terminal you want to start, s--server and c--client, the second is the port number you want to bind. After starting the program, enter the commands described above.