|
NAMEsctp_getpaddrs , sctp_getladdrs
—
return a list of addresses to the caller
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
int
int
DESCRIPTIONThesctp_getpaddrs () function is used to get the list of
the peers addresses. The sctp_getladdrs () function is
used to get the list of the local addresses. The association of interest is
identified by the asocid argument. The addresses are
returned in a newly allocated array of socket addresses returned in the
argument addrs upon success.
After the caller is finished, the function
RETURN VALUESThe call returns -1 upon failure and a count of the number of addresses returned in addrs upon success.ERRORSThe functions can return the following errors:SEE ALSOgetsockopt(2), sctp_freeladdrs(3), sctp_freepaddrs(3), sctp(4)
Visit the GSP FreeBSD Man Page Interface. |