Whenever i use winsock's accept() function my app freezes deeply until a connection request comes up. Anyone know how to fix this?
Thanks for any help.
Printable View
Whenever i use winsock's accept() function my app freezes deeply until a connection request comes up. Anyone know how to fix this?
Thanks for any help.
Well that's probably because Accept() halts your program until a Connection Request is recieved, and then accepts that request...
Call on Accept() when you actually have a Connection Request already lined up~
It may also have to do with the fact that the accept() function is not acutally accept(), it's declared as
Code:SOCKET accept( SOCKET s, sockaddr *addr, int *addrlen );
Try looking at select()...
Thanks i found it it's WSAAsyncSelect and FD_ACCEPT message...