NNG_SOCKADDR_INPROC(5)
πΈ NAME πΈ
nng_sockaddr_inproc - inproc socket address π
Welcome to the NNG_SOCKADDR_INPROC(5) page, bestie. This is the one about the little address struct that lives entirely inside your own process, no network drama required. π¦
π¦ SYNOPSIS π¦
#include <nng/nng.h>
enum sockaddr_family {
NNG_AF_INPROC = 1,
};
typedef struct {
uint16_t sa_family;
uint16_t sa_name[128];
} nng_sockaddr_inproc;
π DESCRIPTION π
An nng_sockaddr_inproc is the flavor of nng_sockaddr used to represent addresses associated with intra-process communication using the inproc transport. It's giving same-process communication realness, and we love that for it. β¨
The following structure members are present:
sa_familyβ this field will always have the valueNNG_AF_INPROC. Like, always always. No surprises, no plot twists. πsa_nameβ this field holds an arbitrary C string, which is the name of the address. The string must be NUL terminated, but no other restrictions exist. So name it whatever, just terminate it properly, okay bestie? π
π‘ Tip In order to ensure maximum compatibility, applications should avoid hard coding the size of thesa_namemember explicitly, but use thesizeofoperator to determine its actual size at compile time. Furthermore, the size is guaranteed to be at least128. So please don't just vibe-write a hardcoded size and call it a day. usesizeof, babes. π«Ά
π SEE ALSO π
That's the whole page, bestie β straight from the NNG Reference Manual, dated 2026-06-30, and filed under NNG_SOCKADDR_INPROC(5). Go slay your inproc addresses. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms