NNG_SOCKADDR_INPROC(5)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

🌸 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 value NNG_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 the sa_name member explicitly, but use the sizeof operator to determine its actual size at compile time. Furthermore, the size is guaranteed to be at least 128. So please don't just vibe-write a hardcoded size and call it a day. use sizeof, 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