SCTP Programmer's Guide

Table 2-1 Data Structures in the recvmsg() and sendmsg() Calls (continued)
sendmsg()recvmsg()Variable
Not applicableSpecifies the transmission sequence
number (TSN) assigned to one of the
SCTP data chunks.
sinfo_tsn
Not applicableSpecifies the cumulative TSN, while
presenting an unordered message (if the
MSG_UNORDRED flag is set)
sinfo_cumtsn
Specifies the association ID.Specifies the association ID.
sinfo_assoc_id
SCTP-Specific Socket APIs
This section discusses the SCTP-specific socket APIs.
Following are the SCTP-specific socket APIs:
The sctp_bindx() API
The sctp_peeloff() API
The sctp_getpaddrs() API
The sctp_freepaddrs() API
The sctp_getladdrs() API
The sctp_freeladdrs() API
The sctp_sendmsg() API
The sctp_recvmsg() API
The sctp_connectx() API
The sctp_send() API
The sctp_sendx() API
The following subsections discuss these APIs in detail.
The sctp_bindx() SCTP Socket API
Applications can use the sctp_bindx() API to associate with multiple addresses.
Following is the syntax for the sctp_bindx() socket API:
int sctp_bindx(int sd, struct sockaddr *addrs, int addrcnt,
int flags);
where:
sd Specifies the socket descriptor. If sd is an IPv4 socket, the addresses passed
must be IPv4 addresses. If the sd is an IPv6 socket, the addresses passed
can either be an IPv4 or an IPv6 addresses.
addrs
Specifies a pointer to an array of one or more socket addresses. Each
address is specified in its appropriate structure. For an IPv6 socket,
SCTP-Specific Socket APIs 61