Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

sctp_connectx()

Connect a host to a multihomed endpoint

Synopsis:

#include <netinet/sctp.h>

int sctp_connectx( int s, 
                   struct sockaddr *addrs, 
                   int addrcnt);

Arguments:

s
Socket descriptor.
addrs
Array of addresses.
addrcnt
Number of addresses in the array.

Library:

libsctp

Use the -l sctp option to qcc to link against this library.

Description:

The sctp_connectx() function connects a host to a multihomed endpoint by specifying a list of peer addresses.

Returns:

0
Success.
-1
Failure; errno is set.

Errors:

EINVAL
An invalid address was passed in addrs.

Classification:

SCTP

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

SCTP, sctp_bindx(), sctp_freeladdrs(), sctp_freepaddrs(), sctp_getladdrs(), sctp_getpaddrs(), sctp_peeloff(), sctp_recvmsg(), sctp_sendmsg()