SCTP_PEELOFF(2)
π SCTP_PEELOFF(2) π
okay so bestie, welcome to the System Calls Manual β this one lives in section 2, so it's a real-deal syscall, not some lil shell command. it's literally called sctp_peeloff and i'm obsessed π¦
β¨ NAME β¨
sctp_peeloff β detach an association from a one-to-many socket so it gets its own fd π
π LIBRARY π
Standard C Library (libc, -lc)
like yes, it's just chillin' in libc, nothing extra to link, you're welcome π«Ά
πΈ 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 here's the tea β β the sctp_peeloff() system call attempts to detach the association specified by id into its own separate socket. that's it, that's the whole vibe. one-to-many socket in, independent socket out, main character energy for everybody π
π RETURN VALUES π
- failure β the call returns
-1π - success β it returns the new socket descriptor β¨
periodt. no in-between.
π ERRORS π
the sctp_peeloff() system call can return the following errors, and ngl some of these are giving "check ur args bestie":
[ENOTCONN]β theidyou handed 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 π like bestie that's just not a socket
π¦ SEE ALSO π¦
and that's the whole page, mwah π this little gem comes to you from Debian, dated October 30, 2007 β yeah she's an elder but she still slays, okurrr πβ¨π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms