SCTP_FREEPADDRS(3)
π NAME π
okay so bestie, meet sctp_freepaddrs, sctp_freeladdrs β release the memory returned from a previous call. Thatβs the whole assignment, and they ate. π
π LIBRARY π
These live in the Standard C Library (libc, -lc), periodt. π«Ά
β¨ SYNOPSIS β¨
Grab these headers first, bestie:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
void
sctp_freepaddrs(struct sockaddr *);
void
sctp_freeladdrs(struct sockaddr *);
π¦ DESCRIPTION π¦
So hereβs the tea: the sctp_freepaddrs() and sctp_freeladdrs() functions are used to release the memory allocated by previous calls to sctp_getpaddrs() or sctp_getladdrs() respectively. Match them up correctly, iykyk β paddrs with getpaddrs, laddrs with getladdrs. π
πΈ RETURN VALUES πΈ
none.
Literally no return value, bestie. Itβs giving void energy. π
π SEE ALSO π
sctp_getladdrs(3)sctp_getpaddrs(3)sctp(4)- R. Stewart, M. Tuexen, K. Poon, P. Lei, and V. Yasevich, Sockets API Extensions for the Stream Control Transmission Protocol (SCTP), RFC 6458, December 2011.
π STANDARDS π
The sctp_freepaddrs() and sctp_freeladdrs() functions conform to RFC 6458. Iconic behavior, no cap. β¨
and thatβs the page, bestie β this one came from Debian, dated February 2, 2024, with the page tag SCTP_FREEPADDRS(3) π«Άπ
π¦ where this page comes from
- 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