Home > Software engineering >  DisconnectEx usage to solve
DisconnectEx usage to solve

Time:10-04

I used DisconnectEx to recycling in the IOCP Socket

Either the server or client active or passive disconnect all recycled by DisconnectEx Socket
The Socket to return to to accept, when using a 10022 error (not all Socket appear this error)


Whether can only be reuse in the TIME_WAIT state Socket?
If so, then as a server, take the initiative to close the client connection, must enter the TIME_WAIT state, then call DisconnectEx will not be able to reuse resources, and so is disconnect only call closesocket actively, and DisconnectEx deals only with the client actively disconnect situation?

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

Socket recycling was also tested
But then there is no use in engineering
You can refer to
http://blog.csdn.net/tpriwwq/article/details/18077091
  • Related