'How to run a socket in parallel/thread/non blocking to main program in Python
I have a program that checks connectivity constantly with several endpoints. This program updates a list with the connection status.
I would like to run a socket server in parallel. The Idea is that I can remotely connect to the socket and read the status of the list of connections, or send other commands.
I was playing with socket examples, but this is blocking my main program. How can I create a parallel process that accepts connections to the socket and handles incoming data, without blocking the main program?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
