Hello,
I have been working on creating a simple 3-client 1-server model to check and update the user-supplied text file. The server is doing this by comparing it with his own list of words.
All clients have been successfully connected and have got the updated file.
Now further I wanted to allow the server to keep on polling the clients after some 60 seconds to check if there are any new words in their queue and retrieve if any.
Could someone help as to what functionality the server needs to use to do this? I have been trying to use select but could not really properly make use of it. I know there should be some locking mechanism as well so that it does not affect the multi-threaded environment. But how exactly it can be accomplished?
NOTE: I am using python 3.7
I have been working on creating a simple 3-client 1-server model to check and update the user-supplied text file. The server is doing this by comparing it with his own list of words.
All clients have been successfully connected and have got the updated file.
Now further I wanted to allow the server to keep on polling the clients after some 60 seconds to check if there are any new words in their queue and retrieve if any.
Could someone help as to what functionality the server needs to use to do this? I have been trying to use select but could not really properly make use of it. I know there should be some locking mechanism as well so that it does not affect the multi-threaded environment. But how exactly it can be accomplished?
NOTE: I am using python 3.7