Home > Software engineering >  How to modify the complete key of the completion port
How to modify the complete key of the completion port

Time:10-01

In the completion port development, processing logic of SOCKET has changed, need to replace CompletionKey
CreateIoCompletionPort returns NULL, and the error is repeated binding,
There, the SOCKET can't shut down, just the processing logic is wrong, is there a way to replace the CompletionKey

CodePudding user response:

Search "thread pool"?

CodePudding user response:

In fact, I just want to change CompletionKey has bind to a SOCKET

CodePudding user response:

Haven't heard of you want to change the CompletionKey, lz finish the key why want to change?

CodePudding user response:

After the Accept, need to different Socket to different process, so the process is not the same, I defined the uniform interface, the different implementation classes now,
If can change the CompletionKey, processing logic will be much easier,
  • Related