SCTP_GENERIC_RECVMSG(2)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

🌸 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 argument s is not a valid descriptor. πŸ™ˆ
  • ENOTSOCK β€” The argument s is not a socket. 😭

🌈 SEE ALSO 🌈


πŸ’– source/version: Debian Β· date: October 30, 2007 πŸ’–

πŸ“¦ where this page comes from