logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sctp_peeloff — detach an association from a one-to-many socket to its own fd

Description

The sctp_peeloff() system call attempts detach the association specified by id into its own separate socket.

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.

Library

Standard C Library (libc, -lc)

Name

sctp_peeloff — detach an association from a one-to-many socket to its own fd

Return Values

The call returns -1 on failure and the new socket descriptor upon success.

See Also

sctp(4) Debian October 30, 2007 SCTP_PEELOFF(2)

Synopsis

#include<sys/types.h>#include<sys/socket.h>#include<netinet/sctp.h>intsctp_peeloff(ints, sctp_assoc_tid);

See Also