SCTP_GENERIC_SENDMSG(2)

πŸ“¦ version 15.1, in freebsd 15.1

πŸ¦‹ SCTP_GENERIC_SENDMSG(2) πŸ¦‹

okay so this is the System Calls Manual page for SCTP_GENERIC_SENDMSG(2), and we’re gonna make it cute and correct. no cap. πŸ’…

✨ NAME ✨

  • sctp_generic_sendmsg, sctp_generic_sendmsg_iov β€” send data to a peer πŸ’Œ

πŸŽ€ LIBRARY πŸŽ€

Standard C Library (libc, -lc). she lives in libc, bestie. 🫢

🌸 SYNOPSIS 🌸

       #include <sys/types.h>
       #include <sys/socket.h>
       #include <netinet/sctp.h>

       int
       sctp_generic_sendmsg(int s, void *msg, int msglen, struct sockaddr *to,
           socklen_t len, struct sctp_sndrcvinfo *sinfo, int flags);

       int
       sctp_generic_sendmsg_iov(int s, struct iovec *iov, int iovlen,
           struct sockaddr *to, struct sctp_sndrcvinfo *sinfo, int flags);

πŸ’– DESCRIPTION πŸ’–

okay so sctp_generic_sendmsg() and sctp_generic_sendmsg_iov() are the true system calls used by the sctp_sendmsg(3) and sctp_send(3) function calls. iconic. they’re more efficient since they are true system calls, but they are specific to FreeBSD and can be expected not to be present on any other operating system. so like, FreeBSD-only vibes, no cap. 🌈

for detailed usage please see either the sctp_send(3) or sctp_sendmsg(3) function calls. iykyk. 🧚

⭐ RETURN VALUES ⭐

The call returns the number of bytes written 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 πŸ‘‘


mwah πŸ’‹ β€” brought to you by Debian, dated October 30, 2007. bye bestie, go send some data 🫢✨

πŸ“¦ 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