Interface UDPMonitor
access this type via: net.UDPMonitor (provides, requires or uses)
Monitor activity over multiple non-blocking sockets.
Functions
UDPMonitor()
bool addSocket(storeUDPServer s, optional storeData userData)
void remSocket(UDPServer s)
MonitorEvent[] wait(optional int ms)
UDPMonitor()
Create a new monitor instance.
bool addSocket(storeUDPServer s, optional storeData userData)
Add a socket to this monitor instance, optionally associating a data instance with it. The monitor will deliver recv and close events by default, indicating that the socket has data available for receive or that it has been closed.
void remSocket(UDPServer s)
Remove a socket from this monitor instance.
MonitorEvent[] wait(optional int ms)
Wait for activity on any of the sockets in this monitor instance.