3 sendmsg \- send a message through a socket
6 #include <sys/socket.h>
10 ssize_t sendmsg(int \fIsd\fP, const struct msghdr * \fImsg\fP, int \fIflags\fP);
14 sendmsg() 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
24 The operation is not implemented for the given socket.
27 The socket is not connected; there is no peer.
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.
52 This function first appeared in Minix 3.1.8.