diff options
| author | elioat <elioat@tilde.institute> | 2025-11-15 21:40:08 -0500 |
|---|---|---|
| committer | elioat <elioat@tilde.institute> | 2025-11-15 21:40:08 -0500 |
| commit | 5533cc83e9e844bc7d173507c0f299d855ee93f6 (patch) | |
| tree | b0bac0c195055f06166bb781d20f01742dd0cb38 /cpp/life.cpp | |
| parent | 83a3ec1d9681cd9f15214d50339a48c906c72298 (diff) | |
| download | tour-5533cc83e9e844bc7d173507c0f299d855ee93f6.tar.gz | |
Add connect/disconnect messages showing who is on the network
New features:
- Display join messages when peers connect (format: '* name joined')
- Display leave messages when peers disconnect (format: '* name left')
- Show registry snapshot when joining (format: '* Connected peers: alice, bob, carol')
- Registry snapshot updates as peers join/leave
When a new peer joins:
- All existing peers see a join message
- New peer receives a snapshot of current peers via gossip
- Peers display their local and remote peer lists
Properly handles various network topologies:
- Star (all peers connect to bootstrap): works correctly
- Mesh (multiple connections): properly forwards join messages
- Linear: propagates correctly through the chain
Diffstat (limited to 'cpp/life.cpp')
0 files changed, 0 insertions, 0 deletions