9.4 sctp_connectx Function


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



UNIX Network Programming Volume 1, Third Edition
Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)
ISBN: 0131411551
EAN: 2147483647
Year: 2003
Pages: 441

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net