Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Oct : Overlapped IO issue

www.cryer.info
Managed Newsgroup Archive

Overlapped IO issue

Subject:Overlapped IO issue
Posted by:"Piotr Szturmaj" (gacek999@nospam.tlen.pl)
Date:Sun, 16 Oct 2005 20:30:38

Hi

I have problem with my IOCP server. I call AcceptEx
with number of sockets (i.e. 10), there is no error.
I extended overlapped structure with IOType member.
For AcceptEx I set ioType to "ioAccept"
In worker thread I call GetQueuedCompletionStatus which
dequeues successful completion packet for me... This packet
is ioAccept, I think I have client connected... now I call
WSARecv on this socket with error, This error isn't
WSA_IO_PENDING but WSA_ENOTCONN! What
thing could cause this? I think I did everything fine.

Piotr

Replies:

www.cryer.info
Managed Newsgroup Archive