INtime SDK Help
sctp_getassocid
INtime Help

Returns an association ID for a specified socket address.

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>

sctp_assoc_t
sctp_getassocid(int s, struct sockaddr *addr);

Remarks

The sctp_getassocid() call attempts to look up the specified socket address addr and find the respective association identification.

Return values

The call returns the association id upon success and 0 is returned upon failure.

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.

Requirements

Versions
INtime 4.0
See Also