Skip to main content
GameDev.net gamedev.net
🔒 Locked

sendto may not send a Datagram in one Piece?

Started by hiigara Feb 7, 2010 at 9:34 AM 0 replies 600+ views
Original Post
hiigara
hiigara
sendto's Man Page says a non-blocking sendto may return without sending the whole Buffer. What good is sending a broken Datagram?
Antheus
Antheus
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.