Thread: non-blocking send/recv

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    80

    non-blocking send/recv

    Hi, I'm having some trouble understanding non-blocking socket operations.

    If I have a non-blocking server (select based) and use a non-blocking send from the client, select will "wake up" and the server will have a chance to check which socket in the set is ready to receive info. But since both the client and server is non-blocking wouldn't the client send() return an error and set the errorcode to WSAEWOULDBLOCK (or EWOULDBLOCK depending on the system..) during the time it takes for the server to start its recv()?
    Last edited by antex; 05-22-2007 at 02:47 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to initialize a non blocking socket using only winsock library
    By *DEAD* in forum Networking/Device Communication
    Replies: 4
    Last Post: 01-18-2008, 07:03 AM
  2. Non Blocking output..
    By vasanth in forum C++ Programming
    Replies: 3
    Last Post: 08-27-2004, 09:35 AM
  3. Socket Blocking Trouble!
    By LearningMan in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2003, 10:09 AM
  4. Non blocking listen() with winsock
    By manwhoonlyeats in forum C Programming
    Replies: 1
    Last Post: 12-08-2002, 07:00 PM
  5. non blocking recv
    By rohit in forum Linux Programming
    Replies: 4
    Last Post: 03-05-2002, 09:35 PM