How To Send UDP Custom Messages

If you implement custom commands on Diarkis server, you may invoke those commands by sending custom commands. For UDP servers, you may choose between UDP and RUDP. The example below shows the UDP version.


// ver = command version

// cmd = command ID

// payload = message
udp.Send(ver, cmd, payload);