1. Home
  2. Browse
  3. mas-bandwidth-netcode

mas-bandwidth-netcode

v1.4.3#0Latest

A secure client/server protocol for multiplayer games built on top of UDP.

Install

Run the following Vcpkg command to install the port.

vcpkg install mas-bandwidth-netcode

Usage

mas-bandwidth-netcode provides a static library and header:

find_path(NETCODE_INCLUDE_DIR netcode.h)
find_library(NETCODE_LIBRARY netcode)
target_include_directories(main PRIVATE ${NETCODE_INCLUDE_DIR})
target_link_libraries(main PRIVATE ${NETCODE_LIBRARY})

mas-bandwidth-netcode uses libsodium for encryption and authentication; link it as well:

find_package(unofficial-sodium CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial-sodium::sodium)

On Windows, also link ws2_32 and iphlpapi.

Dependencies

See source

Version

v1.4.3#0

Publication

Supports

All

GitHub

mas-bandwidth/netcode2.6K

Homepage

github.com/mas-bandwidth/netcode

Subtree

ddd110b8a0

License

BSD-3-Clause

Definition

Manifest