Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.53 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.53 KB

Walnut-Networking

Walnut-Networking an optional module for Walnut which provides networking capabilities.

Getting Started

Add this is a submodule to your Walnut application. If you need to make a new Walnut app, check out WalnutAppTemplate.

If cloned into Walnut/ directory, Walnut's build scripts should automatically pick this up and include it into your project if present. Otherwise, if doing this manually, include the Build-Walnut-Networking.lua file into your build scripts somewhere, eg:

include "Walnut/Walnut-Networking/Build-Walnut-Networking.lua"

Walnut Chat is an example app made using Walnut and this Walnut-Networking module, so check that out for a further example of how to get started. The server component of this project runs on a Linux server (headless) which is also a useful example.

Features

  • Supports Windows and Linux (mostly)
  • Client/Server API for both reliable and unreliable data transmission, using Valve's GameNetworkingSockets library
  • Easy and clean network event callbacks and connection management
  • DNS lookup utility function for translating domain names to IP addresses (Walnut::Utils::ResolveDomainName)
  • [Planned] HTTP API for GET/POST requests

3rd Party Libraries