nng

NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems.

Latest version: 1.12.0

Add to xmake.lua

add_requires("nng 1.12.0")

Learn how to add and link packages with Xmake →

Information

License
MIT
Recipe updated
2026-06-28T06:50:43.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • cross: i386, x86_64, arm, armv7, arm64, mips, mips64, mips64el, riscv, riscv64, loong64, s390x, ppc, ppc64, ppc64el, sh4, sparc64
  • android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
  • windows: x86, x64, arm, arm64, arm64ec
  • iphoneos: arm64, x86_64
  • macosx: x86_64, arm64

Options

NNG_ELIDE_DEPRECATED
Elide deprecated functionality. · Type: boolean · Default: false
NNG_ENABLE_HTTP
Enable HTTP API. · Type: boolean · Default: true
NNG_ENABLE_STATS
Enable statistics. · Type: boolean · Default: true
NNG_ENABLE_TLS
Enable TLS support. · Type: boolean · Default: false
NNG_PROTO_BUS0
Enable BUSv0 protocol. · Type: boolean · Default: true
NNG_PROTO_PAIR0
Enable PAIRv0 protocol. · Type: boolean · Default: true
NNG_PROTO_PAIR1
Enable PAIRv1 protocol. · Type: boolean · Default: true
NNG_PROTO_PUB0
Enable PUBv0 protocol. · Type: boolean · Default: true
NNG_PROTO_PULL0
Enable PULLv0 protocol. · Type: boolean · Default: true
NNG_PROTO_PUSH0
Enable PUSHv0 protocol. · Type: boolean · Default: true
NNG_PROTO_REP0
Enable REPv0 protocol. · Type: boolean · Default: true
NNG_PROTO_REQ0
Enable REQv0 protocol. · Type: boolean · Default: true
NNG_PROTO_RESPONDENT0
Enable RESPONDENTv0 protocol. · Type: boolean · Default: true
NNG_PROTO_SUB0
Enable SUBv0 protocol. · Type: boolean · Default: true
NNG_PROTO_SURVEYOR0
Enable SURVEYORv0 protocol. · Type: boolean · Default: true
NNG_TRANSPORT_INPROC
Enable inproc transport. · Type: boolean · Default: true
NNG_TRANSPORT_IPC
Enable IPC transport. · Type: boolean · Default: true
NNG_TRANSPORT_TCP
Enable TCP transport. · Type: boolean · Default: true
NNG_TRANSPORT_TLS
Enable TLS transport. · Type: boolean · Default: true
NNG_TRANSPORT_WS
Enable WebSocket transport. · Type: boolean · Default: true
NNG_TRANSPORT_WSS
Enable WSS transport. · Type: boolean · Default: true
NNG_TRANSPORT_ZEROTIER
Enable ZeroTier transport (requires libzerotiercore). · Type: boolean · Default: false

Versions

  • v1.3.2
  • v1.4.0
  • v1.5.2
  • v1.7.3
  • v1.8.0
  • v1.10.1
  • v1.10.2
  • v1.11
  • v1.12.0

Dependencies

Used by (1)

Packages declaring this dependency; requirements can vary by platform and configuration.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "nng 1.12.0"

show info

xrepo info "nng"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("nng 1.12.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("nng")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "nng 1.12.0" shell