Setting Up the P2P Module on the Server

Overview

The P2P module can be set up on a UDP server.

⚠ Diarkis P2P currently supports only UDP/RUDP.

Setup

To enable Diarkis P2P, add "enableP2P": true to the UDP configuration file.

  "enableP2P": true

The configuration file for the UDP server is the path argument passed to diarkisexec.SetupDiarkisUDPServer(path) within the main function that starts the UDP server.

	// In the example below, configs/udp/main.json is the configuration file.
	diarkisexec.SetupDiarkisUDPServer("/configs/udp/main.json")

For more details, please refer to the diarkisexec API reference.

It is recommended to use the server template for easy server setup. Try starting here: Diarkis Server Template

Last updated