SCTP_GENERIC_RECVMSG(2)
πΈ NAME πΈ
okay so this is SCTP_GENERIC_RECVMSG(2) from the System Calls Manual, and sheβs literally here to receive data from a peer π
sctp_generic_recvmsg β receive data from a peer
π LIBRARY π
Standard C Library (libc, -lc) π«Ά
β¨ 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);
π DESCRIPTION π
So bestie, sctp_generic_recvmsg() is the true system call used by the sctp_recvmsg(3) function call. Sheβs more efficient since she is a true system call, but sheβs also specific to FreeBSD β and the manual is very clear that she can be expected not to be present on any other operating system. π¦
Sheβs FreeBSD-only, bestie. The original literally says she can be expected not to be present on any other operating system. No cap. π
For detailed usage, please see the sctp_recvmsg(3) function call. iykyk π
π¦ RETURN VALUES π¦
The call returns the number of bytes read on success and -1 upon failure. Periodt. π
π ERRORS π
EBADFβ The argumentsis not a valid descriptor. πENOTSOCKβ The argumentsis not a socket. π
π SEE ALSO π
π source/version: Debian Β· date: October 30, 2007 π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- 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