9.7 sctp_getladdrs Function
The sctp_getladdrs function can be used to retrieve the local addresses that are part of an association. This function is often necessary when a local endpoint wishes to know exactly which local addresses are in use (which may be a proper subset of the system's addresses).
#include <netinet/sctp.h> |
int sctp_getladdrs(int sockfd , sctp_assoc_t id , struct sockaddr **addrs ); |
Returns: the number of local addresses stored in addrs , 1 on error |