nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.2.2 of nng, but the latest released version is v1.8.0. see the documentation for v1.8.0 for the most up-to-date information.
nng_sockaddr_inproc(5)

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.

The following structure members are present:

sa_family

This field will always have the value NNG_AF_INPROC.

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.

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.
NNG Reference Manual vv1.2.2 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.