Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the fol...
NAMEsctp_generic_sendmsg sctp_generic_sendmsg_iov - send data to a peer
SYNOPSISIn sys/types.h In sys/socket.h In netinet/sctp.h Ft int Fn sctp_generic_sendmsg int s void *msg int msglen struct sockaddr *to socklen_t len struct sctp_sndrcvinfo *sinfo int flags Ft int Fn sctp_generic_sendmsg_iov int s struct iovec *iov int iovlen struct sockaddr *to struct sctp_sndrcvinfo *sinfo int flags
DESCRIPTIONFn sctp_generic_sendmsg and Fn sctp_generic_sendmsg_iov are the true system calls used by the sctp_sendmsg3 and sctp_send3 function calls. These are more efficient since they are true system calls but they are specific to Fx and can be expected not to be present on any other operating system. For detailed usage please see either the sctp_send3 or sctp_sendmsg3 function calls.
RETURN VALUESThe call returns the number of bytes written on success and -1 upon failure.
- Bq Er EBADF
- The argument Fa s is not a valid descriptor.
- Bq Er ENOTSOCK
- The argument Fa s is not a socket.