---
name: "nng_sockaddr_inproc"
section: "5"
platform: "linux"
package: "libnng-dev"
version: "1.10.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nng_sockaddr_inproc"
---

# nng\_sockaddr\_inproc(5)

inproc socket address

## NAME

nng\_sockaddr\_inproc - inproc socket address

## 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.

**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.

## SEE ALSO

[nng\_sockaddr(5)](/nng_sockaddr/5.md), [nng\_inproc(7)](/nng_inproc/7.md) [nng(7)](/nng/7.md)
