Интерактивная система просмотра системных руководств (man-ов)
sctp_getassocid (3)
>> sctp_getassocid (3) ( FreeBSD man: Библиотечные вызовы )
BSD mandoc
NAME
sctp_getassocid
- return an association id for a specified socket address.
LIBRARY
Lb libc
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
sctp_assoc_t
sctp_getassocid (int s struct sockaddr *addr);
DESCRIPTION
The
sctp_getassocid ();
call attempts to look up the specified socket address
Fa addr
and find the respective association identification.
RETURN VALUES
The call returns the association id upon success and
0 is returned upon failure.
ERRORS
The
sctp_getassocid ();
function can return the following errors.
- Bq Er ENOENT
-
The address does not have an association setup to it.
- Bq Er EBADF
-
The argument
Fa s
is not a valid descriptor.
- Bq Er ENOTSOCK
-
The argument
Fa s
is not a socket.
SEE ALSO
sctp(4)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- ERRORS
-
- SEE ALSO
-