ssize_t sendto(int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len);
In the above sendto()
synopsis, 3rd field represents length
which is ideally be the size of message
being sent in bytes.
What if the length
field is wrong and not equivalent to size of message
?
Will sendto()
succeeds sending only length bytes mentioned. If yes, what happens if the length is bigger compared to real valid message
size.