The example provided by Microsoft here:
It is a Winsock server that uses the AcceptEx function with IOCP.
On line 644, there is a statement
lpAcceptSocketContext = UpdateCompletionPort( lpPerSocketContext->pIOContext->SocketAccept,
ClientIoAccept, TRUE);
When the case ClientIoAccept is hit, the new connection has already been accepted, right? Why do we associate this new socket with IOCP using ClientIoAccept again?
Thank you for help.