text: sendmsg()
  Send a message and its header to a socket
  Synopsis:
  #include <sys/types.h> #include <sys/socket.h> ssize_t sendmsg( int s, const struct msghdr * msg, int flags );
  Since:
  BlackBerry 10.0.0
  Arguments:
  - s
  - The descriptor for the socket; see socket().
  - msg
  - A pointer to the message that you want to send. For a description of the msghdr structure, see recvmsg().
  -.
  Description:.
  Errors:
  - EACCES
  - Search permission is denied for a component of the path prefix, or write access to the named socket is denied.
  - EAGAIN
  - The socket's file descriptor is marked O_NONBLOCK, and the requested operation would block.
  - EAFNOSUPPORT
  - Addresses in the specified address family cannot be used with this socket.
  -msg() before any data was transmitted.
  - EINVAL
  - The sum of the iov_len values overflows an ssize_t.
  - EIO
  - An I/O error occurred while reading from or writing to the filesystem.
  - EISCONN
  - A destination address was specified and the socket is already connected.
  -msg() fails if:
  - EIO
  - An I/O error occurred while reading from or writing to the filesystem.
  - ELOOP
  - A loop exists in symbolic links encountered during name is an empty string.
  - ENOTDIR
  - A component of the path prefix of the pathname in the socket address isn't a directory.
  Classification:
  Last modified: 2014-06-24
  Got questions about leaving a comment? Get answers from our Disqus FAQ.comments powered by Disqus