0

If I am using overlapped sockets with i/o completion ports, is it ok to use WSASend on a socket to send data after posting the initial WSARecv on that same socket, but before having received any data? Will the socket still receive data and trigger the completion port if I have sent data through it?

Thanks, Nick

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by VBNick
0

found answer posted on another forum:

Yes, when using overlapped I/O on sockets using WinSock 2.2, receiving and sending are totally separate.

(In fact, with "shutdown," you may even be able to close one direction without closing the other! But you're unlikely to need this, so sorry for complicating the answer :-)

Edited by VBNick: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.