IOCP and WSASend

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Konstantin Knyazev (kknyazev_no_spam__at_mail.ru)
Date: 11/04/04

  • Next message: manu: "WSAWaitForMultipleEvents supports only WSA_MAXIMUM_WAIT_EVENTS=64 events..."
    Date: Thu, 4 Nov 2004 12:25:43 +0300
    
    

    Hi!

    I'm using IOCP and WSASend to send data. But i'm a little confised, when i
    invoke WSASend i recieve result 0, i mean that data is sent and close socket
    and free client resources, but on next GetQueuedCompletionStatus i'm
    recieving message about sending complete of closed socket and error raised
    due a client's data freed. Please, help me understand how to use WSASend
    when it return 0. I have not found any information about it in MSDN. Thanks!

    Best regards, Konstantin Knyazev


  • Next message: manu: "WSAWaitForMultipleEvents supports only WSA_MAXIMUM_WAIT_EVENTS=64 events..."

    Relevant Pages

    • Re: IOCP and WSASend
      ... > I'm using IOCP and WSASend to send data. ... > invoke WSASend i recieve result 0, i mean that data is sent and close ... you will be getting a completion notice as soon as it completes". ... Almost all of the time a return value of zero should get treated the same as ...
      (microsoft.public.win32.programmer.networks)
    • Two general questions on IOCP and WSASend / Recv
      ... I have a couple questions regarding the use of IOCompletion ports and the Async io routines for send an recieve. ... In the case where say, WSASend returns with the IO completed and the byte count set to the number of bytes i wanted to send filled in, will i still be notified via the IOCP? ...
      (microsoft.public.win32.programmer.networks)
    • Re: IOCP and WSASend
      ... GetOverlappedResultwhich show you if you need to send the last portion ... > I'm using IOCP and WSASend to send data. ... > recieving message about sending complete of closed socket and error raised ...
      (microsoft.public.win32.programmer.networks)