Setup P2P Module on 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 to activate it.

  "enableP2P": true

The configuration file for the UDP server is specified by the argument passed in the diarkisexec.SetupDiarkisUDPServer(path) within the main function that initiates the UDP server.

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

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

You can easily set up a server using the server template, which we recommend as a starting point. Diarkis Server Template

Last updated