Re: Winsock & IO Completion question

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



Look at network group, and use cross-posting and not mutilposting next time
Arkady

"Nadav" <Nadav@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F7ED337-CAE4-4BF3-A9B7-B282F016502A@xxxxxxxxxxxxxxxx
Hi,

I am writing a P2P application
1. I am using a thread pool in combination with IO completion port
2. I associate overlapped sockets with the completion port mentioned in 1
3. I use Write/ReadFile to transact data with the socket.

Taking the above in mind, is it possible that the a write completion will
be
indicated with ?0 == written bytes?? why does this happen?

--
Nadav
http://www.sophin.com


.



Relevant Pages

  • Re: Winsock & IO Completion question
    ... I am writing a P2P application ... I am using a thread pool in combination with IO completion port ... I associate overlapped sockets with the completion port mentioned in 1 ... I use Write/ReadFile to transact data with the socket. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Best way to process data, async IO and completion ports
    ... with one completion port for all processing pieces or whether each ... create a thread pool of 4 * number of processors on an 8-way machine. ... A good rule of thumb is to try to keep all CPUs busy by ... Microsoft Online Community Support ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Best way to process data, async IO and completion ports
    ... with one completion port for all processing pieces or whether each processing ... would have to write the thread pool threads and dispatch the work items to ... A good rule of thumb is to try to keep all CPUs busy by ... Microsoft Online Community Support ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Parallel processing and APC synchronization.
    ... You could use IO completion ports in conjuntion with thread pool. ... it's possible to specify max number of threads to be active at same time - you probably don't want more than 1 thread per core or in case of Nehalem 2 threads per core. ... active work requests for completion port, completion port will activate another thread from thread pool - thus trying to keep all CPU cores busy. ... IO completion port isn't necessarily related to i/o. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Parallel processing and APC synchronization.
    ... You think Thread Pool doesn't involve a system call and kernel ... worker thread should pick up work from the queue without any kernel mode ... transitions while there is work which is how Vista thread pool operates. ... active work requests for completion port, ...
    (microsoft.public.win32.programmer.kernel)