diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-19 09:42:34 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-19 09:42:34 +0200 |
commit | 4153da3c16d184a1e6ffa15d2c504c6e3f6b0e1f (patch) | |
tree | ed8578a0c4d2dadc28da8480d379607675dfcc23 /src/network.h | |
parent | 86b465cfccef5552aa111941fb74ec622e2e7c03 (diff) |
Network: move secure channel to protocol module
Diffstat (limited to 'src/network.h')
-rw-r--r-- | src/network.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/network.h b/src/network.h index c3a2074..2959adc 100644 --- a/src/network.h +++ b/src/network.h @@ -2,7 +2,6 @@ #include <erebos/network.h> -#include "channel.h" #include "network/protocol.h" #include <condition_variable> @@ -51,12 +50,6 @@ struct Server::Peer Identity> identity; vector<shared_ptr<WaitingRef>> identityUpdates; - variant<monostate, - Stored<ChannelRequest>, - shared_ptr<struct WaitingRef>, - Stored<ChannelAccept>, - unique_ptr<Channel>> channel; - Storage tempStorage; PartialStorage partStorage; @@ -91,31 +84,6 @@ struct PeerList::Priv : enable_shared_from_this<PeerList::Priv> void push(const shared_ptr<Server::Peer> &); }; -class ReplyBuilder -{ -public: - void header(NetworkProtocol::Header::Item &&); - void body(const Ref &); - - const vector<NetworkProtocol::Header::Item> & header() const { return mheader; } - vector<Object> body() const; - -private: - vector<NetworkProtocol::Header::Item> mheader; - vector<Ref> mbody; -}; - -struct WaitingRef -{ - const Storage storage; - const PartialRef ref; - const Server::Peer & peer; - vector<Digest> missing; - - optional<Ref> check(); - optional<Ref> check(ReplyBuilder &); -}; - struct Server::Priv { Priv(const Head<LocalState> & local, const Identity & self); |