Demo (in Chinese).
The chat messages can now be encrypted by Attribute-based encryption. Check out the abe
branch for more details.
- ncurses
- CMake
Use CMake to build both the client and server program
mkdir build && cd build
cmake ..
make
Go to exec
directory then you'll see the Client and Server program
- Use
./Client
to start the program
- Login with
- The server's IP address or domain name (e.g. 127.0.0.1 or localhost).
- The port on which the server is listening.
- Your user name (
System
andillegal
are reserved)
- Chat command (examples)
- Usage: Type anything to show the usage.
- Send:
send user1 user2 "message"
, the double quotes are mandatory since you can send the message to multiple users. - List:
list
, list the on-line and off-line users - Logout:
logout
, exit the program.
./Server [-htv] <port number | service name>
- Options:
-h
: Show help.-t
: Run the server in multi-threaded mode, otherwise, using select().-v
: Produce verbose output.