Network Course Project
Simple Chatroom based on Client/Server Architecture
You can send private and public message
- install requirements from
requirements.txt
- run
main.py
in./Server
- run
main_GUI.py
in./Client
-
Client to Server Messages :
-
Public Message
:Public message, length=<message_len>:\r\n <message_body>
-
Private Message
:Private message, length=<message_len> to <user_name1>,<user_name2>,<user_name3>:\r\n <message_body>
-
Login Request
:Hello <user_name>
-
Logout Request
:Bye.
-
Requesting List of Users
:Please send the list of attendees.
-
-
Server to Client Messages:
-
Public Message
:Public message, length=<message_len> from <user_name1>:\r\n <message_body>
-
Private Message
:Private message, length=<message_len> from <user_name1> to <user_name2>,<user_name3>:\r\n <message_body>
-
User logout
:<user_name> left the chat room.
-
Welcome Message
:Hi <user_name>, welcome to the chat room.
-
User Join Public Message
:<user_name> joined the chat room.
-