Key Routines in Wlisten

[This is preliminary documentation and subject to change.]

Wlisten.exe waits for specified multicast packets and displays information about them. The key function in this program is WorkerThread, a routine that runs as a thread when WListen is listening for multicast packets.

WorkerThread starts by creating an event that indicates when the socket is available for reading. The main loop of the thread waits for this event or a completion event. If it sees the read event, WorkerThread reads data from the socket and processes the data so it can be displayed. When the user shuts down Wlisten, the program sets a completion event that causes WorkerThread to close down and exit.