UI: Tkinter
** Notice: In this project, the notification will pop up in the window. The user needs to turn off the window to see the next message.
** Notice: If multiple clients run on the local IP, users can check their messages in the terminal clearly after closing the window in case they don't know whom those windows belong to. If clients run on different laptops, windows can be enough.
- Version: python3 <=
- Same MAC/Linux Only
- ln the terminal, cd into server folder and open the server.py
{versionOfPython} server.py
- ln another terminal, cd into server folder and open the client.py
{versionOfPython} client.py
** Notice: More connections can be made by adding running client.py in other terminals.
- To login:
login {username} {password}
**Notice: A notification will pop up to warn the user if the user inputs a non-existed userID or wrong password.
- To register:
register {username} {password}
**Notice: A notification will pop up to warn the user if the userID already existed.
- After login send the message:
msg {username} {message_data}
**Notice: A notification will pop up to warn the user if the user is not logged in or is not online.
- To log out:
logout {username}
** Notice: Still need to use the ^C to stop the client.py in this terminal, logout command line here only helps make user offline.
** Notice: Assume no same user logged into the different terminals, command line inputs are following the format above