News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

WSAAsyncSelect Question

Started by theunknownguy, April 16, 2010, 06:07:57 AM

Previous topic - Next topic

theunknownguy

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).