1SCTP_SEND(3) Linux Programmer's Manual SCTP_SEND(3)
2
3
4
6 sctp_send - Send a message from a SCTP socket.
7
9 #include <sys/types.h>
10 #include <sys/socket.h>
11 #include <netinet/sctp.h>
12
13 int sctp_send(int sd, const void * msg, size_t len,
14 const struct sctp_sndrcvinfo *sinfo,
15 uint32_t flags);
16
18 sctp_send is a wrapper library function that can be used to send a mes‐
19 sage from a socket without the use of the CMSG header structures. sd
20 is the socket descriptor from which the message pointed to by msg of
21 length len is sent. sinfo is a pointer to a sctp_sndrcvinfo structure.
22 flags parameter is composed of a bitwise OR of the flags that can be be
23 passed as the 3rd argument of a standard sendmsg() call.
24
26 On success, sctp_sendmsg returns the number of bytes sent or -1 if an
27 error occurred.
28
30 sctp(7) sctp_bindx(3), sctp_recvmsg(3), sctp_recvv(3), sctp_peeloff(3),
31 sctp_getpaddrs(3), sctp_getladdrs(3), sctp_opt_info(3),
32 sctp_sendmsg(3), sctp_sendv(3)
33
34
35
36Linux 2.6 2005-10-25 SCTP_SEND(3)