sendto() — Send data on a socket - IBM
www.ibm.com › docs › enIf the socket is in nonblocking mode, sendto () returns -1 and sets the error code to EWOULDBLOCK. See fcntl () — Control open file descriptors or ioctl () — Control device for a description of how to set nonblocking mode. For datagram sockets, this call sends the entire datagram, provided that the datagram fits into the TCP/IP buffers.
sendto: Send data on an unconnected socket - IBM
www.ibm.com › gtpc2 › cpp_sendtoProgramming considerations. The sendto function applies to any unconnected socket.; Use the send or write function instead of the sendto function for connected sockets.; If buffer space is not available at the socket to hold the message to be sent, the sendto function normally blocks, unless the socket is in nonblocking mode.