Results 1 to 4 of 4

Thread: [CLOSED] Help!! Accept freezes App.

  1. #1

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Unhappy [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.
    VS.NET 2003

    Need to email me?

  2. #2
    New Member
    Join Date
    Jul 2002
    Posts
    8
    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 );

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  4. #4

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Thanks i found it it's WSAAsyncSelect and FD_ACCEPT message...
    VS.NET 2003

    Need to email me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width