SCTP_GENERIC_RECVMSG(2)
π SCTP_GENERIC_RECVMSG π
okay bestie, welcome to the System Calls Manual, section 2 β we're talking about sctp_generic_recvmsg(2), and she's a whole vibe. let's get into it β¨
πΈ NAME πΈ
sctp_generic_recvmsg β receive data from a peer
π LIBRARY π
Standard C Library (libc, -lc) β the classic, the icon, the one you already have π
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
int
sctp_generic_recvmsg(int s, struct iovec *iov, int iovlen,
struct sockaddr *from, socklen_t *fromlen,
struct sctp_sndrcvinfo *sinfo, int *msgflags);
like, look at her. seven args. main character energy fr fr π«Ά
π¦ DESCRIPTION π¦
so here's the tea: sctp_generic_recvmsg() is the true system call that the sctp_recvmsg(3) function call uses underneath. it's giving "the real one behind the curtain" π
the way that this call is more efficient because it is a true system call?? obsessed. but bestie, listen β it's specific to FreeBSD, and you can expect it to not be present on any other operating system. no cap. it's FreeBSD-only, periodt. π₯
for detailed usage, please see the sctp_recvmsg(3) function call. she's got the full tutorial, this one's just the fast lane π
π RETURN VALUES π
- on success: the call returns the number of bytes read π
- on failure: it returns -1 π
π ERRORS π
[EBADF]β the argumentsis not a valid descriptor. bestie that's not a real one, try again π[ENOTSOCK]β the argumentsis not a socket. close but not quite, that's not a socket at all π
π SEE ALSO π
and that's the whole page, bestie!! you ate that. π
this was brought to you by the Debian crew, dated October 30, 2007 β yeah she's vintage but she still slays, okurrr π
go forth and receive your data, queen πβ¨
π¦ 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