Home > Software engineering >  Using WSAAsyncSelect problem
Using WSAAsyncSelect problem

Time:10-01

After using WSAAsyncSelect recv becomes non-blocking mode of how to change back to block?

CodePudding user response:

Try this:

http://blog.csdn.net/beyond_cn/article/details/7666708

CodePudding user response:

http://blog.csdn.net/shinichr/article/details/23533251

CodePudding user response:

reference 1st floor cvbtvbwu response:
try this:

http://blog.csdn.net/beyond_cn/article/details/7666708



Where is he that two lines? Just use the WSAAsyncSelect (m_Socket, m_hWnd, WM_SOCKET FD_ACCEPT); Combined with directly? Or before recv plus? I tried, but they had no effect ah, where is the,

CodePudding user response:

refer to the second floor oyljerry response:
http://blog.csdn.net/shinichr/article/details/23533251

I added WSAAsyncSelect before recv (sock, HWND, WM_SOCKET2, 0); Or no traffic
  • Related