I found some source code, when SO_ACCEPT, you need to delete pOverlapped, then new pOverlapped, WSARecv (... , & amp; POverlapped);
And SO_RECEIVE also is same,
And it is used to CArray or CList, CMap saved,
Now I just want to ask the eldest brother:
1, you need to delete the new another new WSARecv (... , & amp; POverlapped);
2, in the use of linked list save PerSocketData, and pOverlapped list need to add the critical area?
CodePudding user response:
2. List need to add the critical area?Iocp you, affirmation multithreaded access list, you need thread synchronization,
CodePudding user response: