A TCP chat program that uses DES key to encrypt communication content and RSA public key to encrypt DES key, supporting communication between one server and multiple clients. Boost C++ libraries is also used to implement RSA large number operations.
- Boost v1.76.0
- Linux environment is required
-o
or--option
: Run as server(s) or client(c) mode. (Required)-a
or--address
: The IP address of the server. (optional)-p
or--port
: The port of the server. (optional)-v
or--version
: Show the version number.-h
or--help
: Show the help message.
make epoll
./epoll_chat -o s [-a <listen-ip>] [-p <listen-port>]
./epoll_chat -o c [-a <remote-ip>] [-p <remote-port>]
- select/poll versions to be implemented
- Performance/stress test?