SCTP_PEELOFF(2)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

✨ 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] β€” 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.

πŸ‘‘ 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms