I found the code for Socket Chatroom Server on the internet, here are the links:
Server -
https://pythonprogramming.net/server-chatroom-sockets-tutorial-python-3/
Client -
There is one small problem I have noticed and I can't solve it. Clients can't receive the messages from other clients before their own input. When the message comes, is there a way to block taking input and show the message from other clients first, and then continue to take input again? I know I should use threading for this problem but I have no idea how to implement it.
Aucun commentaire:
Enregistrer un commentaire