Интерактивная система просмотра системных руководств (man-ов)
sctp_peeloff (2)
>> sctp_peeloff (2) ( FreeBSD man: Системные вызовы ) sctp_peeloff (3) ( Solaris man: Библиотечные вызовы )
BSD mandoc
NAME
sctp_peeloff
- detach an association from a one-to-many socket to its on fd
LIBRARY
Lb libc
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
int
sctp_peeloff (int s sctp_assoc_t id);
DESCRIPTION
The
sctp_peeloff ();
system call attempts detach the association specified by
Fa id
into its own seperate socket.
RETURN VALUES
The call returns -1 on failure and the new socket descriptor
upon success.
ERRORS
The
sctp_peeloff ();
can return the following errors.
- Bq Er ENOTCONN
-
The
Fa id
given to the call does not map to a valid
association.
- Bq Er E2BIG
-
The size of the address list exceeds the amount of
data provided.
- 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
-