• Advertisement
Sign in to follow this  

sendto may not send a Datagram in one Piece?

This topic is 2935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

sendto's Man Page says a non-blocking sendto may return without sending the whole Buffer. What good is sending a broken Datagram?

Share this post


Link to post
Share on other sites
Advertisement
This?
Quote:
Return Value

If no error occurs, sendto returns the total number of bytes sent, which can be less than the number indicated by len. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.


sendto is not UDP specific. Berkeley socket API is oooold, and includes a lot of now obsolete, unused or inapplicable concepts.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement