Set Up P2P Module on Server

Overview

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

⚠ Currently, Diarkis P2P 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 argument passed to diarkisexec.SetupDiarkisUDPServer(path) within the main function that launches 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 initially use the server template for easily setting up the server. Refer to Diarkis Server Template.

Last updated

Was this helpful?