Should I use different WSAOVERLAPPED struct for WSASend and WSARecv?

184 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 answers

1
sirgeorge 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.