1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 09:43:37 +02:00
dnetd_old/protocol.md
Tristan 🅱. Kildaire 34fc7212ef Updated protocol
2020-09-23 10:33:19 +02:00

546 B

dnet protocol specification

Preamble

Every command starts with a 1 byte code specifying the command.

|-- command (1 byte) --|-- dependant on command (n bytes) --|

Command listing (client/server->server)

  1. auth - authenticate a new client
  2. link - authenticate a new server

Client/Server types (server->server/client)

  1. msg - new message

Commands

auth

|-- 0 --|-- username (null-terminated) --|-- password (null-terminated)--|
|-- 0 --|-- todo