docs/protocols.md hinzugefügt
This commit is contained in:
31
docs/protocols.md
Normal file
31
docs/protocols.md
Normal 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"
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user