wxSocket finding open connections

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ahagele
In need of some credit
In need of some credit
Posts: 7
Joined: Wed Dec 16, 2015 3:49 am

wxSocket finding open connections

Post by ahagele »

How can I find and use all the open connections on a wxSocketServer?
The socket events allow to look up the current socket with the sock = event.GetSocket() call.
But I want to send data to all connected client outside the event handler.
I currently save the sock pointers in a list when the a connection is established. This will require all the management of taking entries on and off as they connect and disconnect.
Is there method in the wxSocketServer class that allow to explore the open connections?
Post Reply