From 28220406f68f38d56648c3932c555b6d6d2b5788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 10 Nov 2021 21:40:30 +0100 Subject: Network: hold sensitive messages until channel is established --- src/network.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/network.h') diff --git a/src/network.h b/src/network.h index fe7d7b4..c4f3d6f 100644 --- a/src/network.h +++ b/src/network.h @@ -56,13 +56,15 @@ struct Server::Peer PartialStorage partStorage; vector>> serviceQueue {}; + vector> secureOutQueue {}; shared_ptr lpeer = nullptr; - void send(const struct TransportHeader &, const vector &) const; + void send(const struct TransportHeader &, const vector &, bool secure); void updateIdentity(ReplyBuilder &); void updateChannel(ReplyBuilder &); void updateService(ReplyBuilder &); + void trySendOutQueue(); }; struct Peer::Priv : enable_shared_from_this -- cgit v1.2.3