sctp_peeloff2
Detach an association from a one-to-many socket to its own fd
Usage
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
int
sctp_peeloff(int s, sctp_assoc_t id);
Library
Standard C Library (libc, -lc)
Overview
The sctp_peeloff() system call attempts detach the association specified by id into its own separate socket.
Return values
The call returns -1 on failure and the new socket descriptor upon success.
Errors
The sctp_peeloff() system call can return the following errors:
- [ENOTCONN]
-
The id given to the call does not map to a valid association.
- [E2BIG]
-
The size of the address list exceeds the amount of data provided.
- [EBADF]
-
The argument s is not a valid descriptor.
- [ENOTSOCK]
-
The argument s is not a socket.
Releases
44 releases since FreeBSD 7.0-RELEASE; the text changed 31 times.