1 .\" (C) Copyright Sridhar Samudrala IBM Corp. 2005.
3 .\" Permission is granted to distribute possibly modified copies
4 .\" of this manual provided the header is included verbatim,
5 .\" and in case of nontrivial modification author and date
6 .\" of the modification is added to the header.
8 .TH SCTP_SEND 3 2005-10-25 "Linux 2.6" "Linux Programmer's Manual"
10 sctp_send \- Send a message from a SCTP socket.
13 .B #include <sys/types.h>
14 .B #include <sys/socket.h>
15 .B #include <netinet/sctp.h>
17 .BI "int sctp_send(int " sd ", const void * " msg ", size_t " len ,
18 .BI " const struct sctp_sndrcvinfo *" sinfo ",
19 .BI " uint32_t " flags );
23 is a wrapper library function that can be used to send a message from a socket
24 without the use of the CMSG header structures.
26 is the socket descriptor from which the message pointed to by
32 is a pointer to a sctp_sndrcvinfo structure.
34 parameter is composed of a bitwise OR of the flags that can be be passed as
35 the 3rd argument of a standard sendmsg() call.
39 returns the number of bytes sent or -1 if an error occurred.
45 .BR sctp_getpaddrs (3),
46 .BR sctp_getladdrs (3),
47 .BR sctp_opt_info (3),