Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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:
| 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()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)