Home > other >  The WSAAsyncSelect function event
The WSAAsyncSelect function event

Time:10-08

I was using a UDP datagram form received after I call WSAAsyncSelect trigger FD_READ message but the second time I'll have to after the end of the trigger will not be able to trigger closesocket (socket) and call again InitSocket I create a socket and WSAAsyncSelect function in InitSocket calls me to do so may not be quite right but really realized to trigger message every time but I need to add multithreaded every time I'm in the WSAAsyncSelect message is triggered first not judge what message directly open the parameters of the thread needs to exist for its structure directly transfer structure pointer in thread judgment is anything but still triggers only once so I use that method before but this time I again in the call after call closesocket InitSocket is the first time an infinite loop has perfect trigger FD_READ seems to be the default for the second time I have not send system is triggered particularly strange here just skip the switch case I used to judge what message FD_READ after tests found really jump over didn't perform



-- -- -- -- -- - I still can solve by this very good beginner...
  • Related