summaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-23 22:53:16 +0200
committertv <tv@krebsco.de>2026-10-23 22:53:16 +0200
commit6063e647efc4aaad40fec2ee90689bd035144bde (patch)
treef372a0ac9c33ebe91f32af7a5e5930f1e978e186 /src/transport/mod.rs
parent4a788a5901e2613a028cc73e33e10cd67d092018 (diff)
perform handshake in one round trip
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index d7e7135..d96b059 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -112,6 +112,9 @@ impl ParsedMessage {
#[derive(Debug, Clone)]
pub struct HelloRequest {
+ /// The sender's swarm, if it knows it (a new node doesn't yet). A receiver in
+ /// another swarm doesn't answer.
+ pub swarm_id: Option<String>,
pub epoch: Epoch,
/// Proof of the swarm key (`swarm::auth`); empty without one.
pub auth: Vec<u8>,