Skip to content

Describe the framing, the connection limit and the discovery reply - #177

Merged
michaelarnauts merged 1 commit into
masterfrom
docs-framing
Oct 20, 2026
Merged

michaelarnauts merged 1 commit into
masterfrom
docs-framing

Conversation

@michaelarnauts

Copy link
Copy Markdown
Owner

Updates docs/PROTOCOL.md:

  • Discovery: 0x0a00 is a DiscoveryOperation with an empty searchGatewayRequest, and the bridge doesn't answer a packet without it. The reply goes to the address and port the request came from, after a random delay of 10 to 150 ms.
  • Connections: a LAN C accepts up to 6 TCP connections at the same time, and no new ones while they are all in use.
  • Header: src is the client's UUID, the one it registers with (it was described as "seems to be generated by the client"). The bridge closes the connection when the length is over 508 bytes, when the op_length is missing or too large, or when the op or msg can't be decoded. A message for another dst is dropped without an answer.

Documentation only.

🤖 Generated with Claude Code

The src is the client's registered UUID, the bridge closes the connection
on a malformed or too long message (over 508 bytes) and drops a message
for another dst. A LAN C accepts 6 TCP connections. Discovery needs a
searchGatewayRequest and is answered to the sender after a random delay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaelarnauts
michaelarnauts merged commit 05869df into master Oct 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant