diff options
Diffstat (limited to 'src/network/protocol.h')
-rw-r--r-- | src/network/protocol.h | 6 |
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; |