主要功能有注册,聊天(私聊和群聊),离线/注销等,代码分为两部分,具体readme有文档解释,是使用python多线程实现的。
以下是案例
Server
$ python server.py
SERVER WORKING
Client (127.0.0.1, 51638) connected [ tesla ]
Client (127.0.0.1, 51641) connected [ albert ]
Client (127.0.0.1, 51641) is offline [ albert ]
Client
$ python client.py localhost
CREATING NEW ID:
Enter username: tesla
Welcome to chat room. Enter 'tata' anytime to exit
You: Hello
albert joined the conversation
albert: world
albert left the conversation
You:
1