I'm developing a server-client application using WinSock.
Does using the same WSAOVERLAPPED with both WSASend and WSARecv works well? Should I use different WSAOVERLAPPED struct for WSASend and WSARecv?
I'm developing a server-client application using WinSock.
Does using the same WSAOVERLAPPED with both WSASend and WSARecv works well? Should I use different WSAOVERLAPPED struct for WSASend and WSARecv?
If you are using event handle (a member of the
WSAOVERLAPPEDstructure) you should definitely use two different structures for sending and receiving.