I would like to control Psychopy routines from a behavioral program (for non-human primates, written in C++). One likely reasonable way to do so involves communicating from the C++ program using TCP-IP. On the Psychopy side, handling the TCP inputs would likely require a dedicated thread distinct from the control thread running the body of the Psyshopy routine. The TCP-handling thread would control the main Pyshopy thread.
Is such an architecture reasonable to implement in Pychopy?