Share

SmallSockets

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Er.. help! (recv infinite loop)

You are viewing a single message from this topic. View all messages.

  1. 2004-11-22 16:04:16 UTC
    Er hi...

    I know this forum is completely empty.. still I hope there is someone out there who can help me...

    My problem is this...

    From the readData: method inside AbstractSocket.m, there is the following (key) line:

    // Request a read of as much as we can. Should return immediately if no data.

    count = recv(socketfd, readBuffer, readBufferSize, 0);

    The only thing is, the code seems to do exactly the opposite of what the comment promises it will do. If there is no data at the other end then it'll hang forever and ever at this line! I am really stuck, very frustrated have tried many things, any help would be great - if yo need more info, just let me know.

    I hope I'm not typing into the void here :)

    - Pete
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.