docs/protocols.md hinzugefügt

This commit is contained in:
2025-11-17 22:12:16 +01:00
commit a13d2bea6d

31
docs/protocols.md Normal file
View File

@@ -0,0 +1,31 @@
# networking
## cc-net DHCP
DISCOVER (Client → Broadcast)
OFFER (Router → Client)
REQUEST (Client → Router)
ACK (Router → Client)
## request
```json
{
service = "crm_db",
action = "addCustomer",
payload = { ... },
requestId = 19239923,
sender = <clientID>,
version = "1.0"
}
```
## response
```json
{
ok = true,
data = { ... },
error = nil,
requestId = 19239923,
service = "crm_db",
version = "1.0"
}
```