Ext

object Ext(source)

Extension messages (protocol §7): the reserved namespace, the capability fields and the limits. Extension types are not core types, so they are never listed in T; the registry in app.tether.core.ext applies these rules.

Properties

Link copied to clipboard

Extensions shipped in this repository; third parties use a reverse-DNS name they control.

Link copied to clipboard
const val BURST: Int = 40
Link copied to clipboard
const val CAPS: String

caps in sync (client → phone) and status (phone → client): "/", ….

Link copied to clipboard
const val ECHO: String

The built-in diagnostics extension (§7.9).

Link copied to clipboard
const val ERR_FAILED: String
Link copied to clipboard
Link copied to clipboard
const val ERR_UNKNOWN: String

error.code values for refused extension messages.

Link copied to clipboard
const val MAX_BYTES: Int

The whole encoded envelope of one extension message; while call audio runs on the link, MAX_BYTES_IN_CALL.

Link copied to clipboard
Link copied to clipboard
const val MAX_CAPS: Int = 64
Link copied to clipboard
const val MAX_FAILURES: Int = 10

Failures in a row after which an extension is switched off for the rest of the process.

Link copied to clipboard
const val MAX_ID: Int = 48
Link copied to clipboard
Link copied to clipboard
const val MAX_TYPE: Int = 64
Link copied to clipboard
const val PREFIX: String

Every extension type starts with this; nothing else may (core types never do).

Link copied to clipboard
const val RATE_PER_S: Int = 20

Extension messages per second per link and direction, with bursts up to BURST.

Link copied to clipboard
const val STATUS: String

ext in status: {"": {…}}, small per-extension status fields.