|
-
Sep 30th, 2002, 02:02 AM
#1
Thread Starter
Hyperactive Member
[CLOSED] Help!! Accept freezes App.
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.
Last edited by made_of_asp; Sep 30th, 2002 at 07:42 PM.
-
Sep 30th, 2002, 02:20 AM
#2
New Member
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 );
-
Sep 30th, 2002, 08:30 AM
#3
Monday Morning Lunatic
Try looking at select()...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 30th, 2002, 07:42 PM
#4
Thread Starter
Hyperactive Member
Thanks i found it it's WSAAsyncSelect and FD_ACCEPT message...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|