https://github.com/aep/serialyeet
yeet a message over a socket
https://github.com/aep/serialyeet
Last synced: about 1 month ago
JSON representation
yeet a message over a socket
- Host: GitHub
- URL: https://github.com/aep/serialyeet
- Owner: aep
- Created: 2022-10-28T10:08:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T18:28:33.000Z (over 3 years ago)
- Last Synced: 2025-02-24T14:54:34.378Z (over 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yeet
====
message passing for distributed system
- aggressive timeouts for liveness detection
- zero allocations
### protocol
| len | |
|-----|--------------------------------|
| 4 | little endian key |
| 1 | ignored for future use |
| 1 | user flags |
| 2 | little endian value size |
| .. | value |
### reserved keys
| key | |
|-------|----------------------------------|
| 0 | invalid |
| 1 | hello |
| 2 | ping |
| 3 | pong |
| 4 | close |
| 22 | sync |
| ..10 | invalid for future use |
| ..255 | ignored for future use |
### sync
write flooded when not synced
[ 22 0 0 0 21 0 0 0 ]
when synced
[ 22 0 0 0 06 0 0 0 ]
if both receive synced, sync is done and we send hello (1)
trailing message type 22 is ignored after sync is done