computer programming-python

profilestrength
MoreDetails.docx

the write up I provided is the whole idea. I want you to create a peer to peer chat system (so even if the server is not running or shut down/closed, one of the clients connected to the network automatically becomes the server. The system should allow multi-threading and run on different machines and computers at a time. When the program starts running, the user has to register to use the chat with user name and password and that username and password will be saved in a log file in the same directory. if the user name already exist they will be prompted to log in, after they log in. The system will give them a set of commands (maybe stored in a dictionary) the commands will be something like this : WHO_ELSE_CONNECTED = 'whoelse'(see the other usernames online) BROADCAST = 'broadcast'(send message to everyone) MESSAGE = 'message(send private message to someone online) LOGOUT = 'logout' (log out of system) SENDFILE = 'sendfile'(send file to someone) This website has something similar to what i am talking about :https://github.com/savithruml/chat-room/blob/master/chat_server.py check out the link.