[ Team LiB ] Previous Section Next Section

9.4 sctp_connectx Function

#include <netinet/sctp.h>

int sctp_connectx(int sockfd, const struct sockaddr *addrs, int addrcnt);

Returns: 0 for success, 1 on error

The sctp_connectx function is used to connect to a multihomed peer. We specify addrcnt addresses, all belonging to the same peer, in the addrs parameter. The addrs parameter is a packed list of addresses, as in Figure 9.4. The SCTP stack uses one or more of the given addresses for establishing the association. All the addresses listed in addrs are considered to be valid, confirmed addresses.

Figure 9.4. Packed address list format for SCTP calls.

graphics/09fig04.gif

    [ Team LiB ] Previous Section Next Section