sctp_getassocid
—
return an association id for a specified socket
address
Standard C Library (libc, -lc)
The
sctp_getassocid
()
call attempts to look up the specified socket address
addr and find the respective association
identification.
The call returns the association id upon success and 0 is returned
upon failure.
The sctp_getassocid
() function can return
the following errors:
- [
ENOENT
]
- The address does not have an association setup to it.
- [
EBADF
]
- The argument s is not a valid descriptor.
- [
ENOTSOCK
]
- The argument s is not a socket.