I have (what is likely) a very beginner-type question about sockets in Python 3 that I haven't been able to find an answer to so far:
Excluding options like threading or concurrency, what I'd like to know is, is it possible to send something like a string from a client.py
to a server.py
, but then have the server module perform different actions with that string depending on which method from the client sent it? And how?
So, for example, in one case the user inputs a string in client.py
, which sends it to server.py
to perform the task of matching and deleting it from a list, but then in another case, the server returns True if that string is found in the list.