Hi Michael, I use TCP ports directly to communicate with EEG devices (Wearable Sensing and, at times, Biosemi). For most EEG acquisition now, I try to use Lab Streaming Layer, but they don’t always integrate new devices fast enough. Ex. Wearable Sensing has been an open PR over a year. It would also allow, as you allude to in the last point, for other software communications.
Thanks for that info, Tab. If there is enough demand, we could add some classes to PsychoPy to conveniently bundle up UDP or TCP communication functions so people don’t have to reinvent the wheel (and to make it easy to add a graphical component to Builder).
So really, I guess the main impetus in adding socket classes to PsychoPy would mainly be from the Builder point of view, to allow the creation of a graphical socket component. So thanks for raising the issue again, but I suspect if you need to use this functionality at the moment, you’d be best rolling your own solution rather than waiting.