3 sendto \- send a message through a socket
6 #include <sys/socket.h>
10 ssize_t sendto(int \fIsd\fP, const void * \fImsg\fP, size_t \fImsg_len\fP, int \fIflags\fP, const struct sockaddr * \fIdest_addr\fP, socklet_t \fIdest_addr_len\fP);
14 sendto() sends a message to another socket. It may be used with
15 connectionless and connection oriented sockets. At present, minix
16 doesn't support setting \fIflags\fP to any value other than 0.
18 On success, this function returns 0. On error, -1 is returned and
23 The operation is not implemented for the given socket.
26 The socket is not connected; there is no peer.
29 The message pointed to by \fImsg\fP is not in a
30 valid part of the process address space.
33 The address family is not supported by send().
36 The length of sun_path is longer than UNIX_PATH_MAX.
42 The socket is shutdown for writing.
45 The message is too big.