Walnut-Networking an optional module for Walnut which provides networking capabilities.
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.
- 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