KoG Client

Network

Protocol Planned

The KoG client plays on any DDNet or Teeworlds server, and a KoG server can be joined by any DDNet client. This page says what the KoG client adds on top of the game connection. Today that is nothing; what is planned is described from the client's side.

What is built #

As built, the KoG client defines no new network message types: its protocol definition (datasrc/network.py) has no KoG entry, and the client sends no KoG message. What exists in the source is preparation:

  • src/engine/shared/kog_protocol.h reserves a message name for the hello (kog-client-hello@kog.tw) and a few capability flags. The header says it holds names only: "the messages are registered together with their handlers".
  • The client announces no capability: CKogHello::Capabilities() returns KOG_CAP_NONE.
  • The console command kog_version prints the client name, version and what it is based on. It is local.
  • The settings kog_hello and kog_telemetry exist, are off, and say "not implemented yet".
  • The version string the client sends when joining a server names this client instead of TClient, as any DDNet client sends one.

The compatibility rule (a design rule, not a test). A client feature must not change what is sent on the wire to servers that do not know about it. Stock DDNet servers and clients keep working unchanged.

What is planned #

FeatureFrom the client's sideState
Hello with capabilitiesThe client would tell a server which KoG features it understands, if kog_hello is on. The setting exists but nothing is implemented.Planned
Join proofThe client answers a challenge with a signature from its device key. The signing code exists; see login.Partly built no transport
Network statisticsOpt-in, off by default (kog_telemetry), only to servers that ask for them. Nothing is sent today.Planned
Integrity statementA statement about which build the client is. It can never prove that the client is unmodified; see roadmap.Planned

None of these has a wire format that is decided. Their descriptions will be added to this documentation when they are built and approved for publication.

Protocol reference #

Planned. This section will list one page per feature of the KoG additions: the message, its fields, when the client sends it, and its switch. No such page exists yet, because no feature is built, so nothing is listed. A feature appears here only when the owner has decided that its description is public.

Edit this page on GitHub