summaryrefslogtreecommitdiff
path: root/src/network/protocol.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-08-19 11:22:02 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-08-27 10:51:20 +0200
commit401f8c1288842b7479c375fba4aed55f6c5d52e9 (patch)
tree62ccc1414dc1cfdeffd3bf105ca2df3396b90abf /src/network/protocol.h
parent4153da3c16d184a1e6ffa15d2c504c6e3f6b0e1f (diff)
Network: encrypt and decrypt within connection object
Diffstat (limited to 'src/network/protocol.h')
-rw-r--r--src/network/protocol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/protocol.h b/src/network/protocol.h
index 88abf67..c5803ce 100644
--- a/src/network/protocol.h
+++ b/src/network/protocol.h
@@ -87,13 +87,15 @@ public:
const sockaddr_in6 & peerAddress() const;
- bool receive(vector<uint8_t> & buffer);
- bool send(const vector<uint8_t> & buffer);
+ optional<Header> receive(const PartialStorage &);
+ bool send(const PartialStorage &, const NetworkProtocol::Header &,
+ const vector<Object> &, bool secure);
void close();
// temporary:
ChannelState & channel();
+ void trySendOutQueue();
private:
unique_ptr<ConnectionPriv> p;