Should I use different WSAOVERLAPPED struct for WSASend and WSARecv?

211 Views Asked by At

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?

1

There are 1 best solutions below

1
On BEST ANSWER

If you are using event handle (a member of the WSAOVERLAPPED structure) you should definitely use two different structures for sending and receiving.