Winsoc, IO COmpletion and AcceptEx problem

Winsoc, IO COmpletion and AcceptEx problem

Post by TmFkYX » Sat, 25 Mar 2006 01:06:37


Winsock, IO Completion and AcceptEx question

Hi I am using a thread pool associated with a listening socket to AcceptEx
new connections.
Should I get a completion indication when closing the listening socket on
which I have called AcceptEx? I closing the listening socket doesn trigger
the completion indication
Should it work this way?
Am I doing anything wrong here ?
What should I do so AcceptEx pending completion requests will return ?
--
Nadav
http://www.yqcomputer.com/
 
 
 

Winsoc, IO COmpletion and AcceptEx problem

Post by Arkady Fre » Mon, 27 Mar 2006 18:34:29

Hi!
You'll receive IOCP notification only for read/write operation AFAIK , so if
peer will close the socket you receive it
on your read operation but not in the case you close your socket
Arkady

 
 
 

Winsoc, IO COmpletion and AcceptEx problem

Post by Arkady Fre » Mon, 27 Mar 2006 18:43:21

Forgot to mention that you always can initiate IOCP event with
PostQueuedCompletionStatus()
Arkady