Sign in to follow this  

sendto may not send a Datagram in one Piece?

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this