The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: theunknownguy on April 16, 2010, 06:07:57 AM

Title: WSAAsyncSelect Question
Post by: theunknownguy on April 16, 2010, 06:07:57 AM
Hey i got the following question wich you guys might help me a little.

"The WSAAsyncSelect function is used to request that WS2_32.DLL should send a message to the window hWnd when it detects any network event specified by the lEvent parameter."


So when MSDN means "request that WS2_32.dll" should send a message, then i imagine its a thread waiting with WSAAccept for send FD_ACCEPT?

Or some kind of check under WSAAccept itself, if WSAAsyncSelect was selected, then it should notify with a window MSG?

Considering this 2 options then whats the benefict from doing yourself a system of notifications?

My final question is direct if i should use window notification messages for connections (i am not expecting an high ammount of packets, i am expecting few ones only, thats why i dont use IOCP in this case).

Or i should build myself another kind of notification?. (all of this directed to performance).