SCTP_PEELOFF(2)
β¨ NAME β¨
SCTP_PEELOFF(2) is a System Calls Manual page, and the name is literally the plot: sctp_peeloff β detach an association from a one-to-many socket to its own fd. bestie, thatβs the whole assignment. π
π LIBRARY π
It comes courtesy of the Standard C Library (libc, -lc) β iconic, no notes. π
π SYNOPSIS π
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
int
sctp_peeloff(int s, sctp_assoc_t id);
π¦ DESCRIPTION π¦
Okay so sctp_peeloff() is a system call, and what it does is attempt to detach the association specified by id into its own separate socket. Thatβs it, thatβs the vibe: one association gets its own solo fd. π¦
π₯ RETURN VALUES π₯
On success, the call returns the new socket descriptor β slay. On failure, it returns -1. Periodt. π₯
π ERRORS π
sctp_peeloff() can return the following errors, and weβre listing every single one:
[ENOTCONN]β theidgiven 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 argumentsis not a valid descriptor.[ENOTSOCK]β the argumentsis not a socket.
π SEE ALSO π
Go read sctp(4) next, bestie β itβs the linked lore. π
π STANDARDS π
Standards check: the sctp_peeloff() function conforms to RFC 6458. we love a compliant icon. π
xoxo, Debian π β February 2, 2024 β SCTP_PEELOFF(2) out π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms