7 "Content mismatch: the file and the connection have diverged"
31 std::chrono::milliseconds wait
virtual bool is_pullonly() const
static Connection dummy
Since this class has no internal state, this global variable can be used instead of creating an insta...
virtual int64_t push(const Readonly_Journal &client_journal, int64_t from, int64_t until, Unlock_Action unlock_action)
Push new data to the connection.
virtual void unlock()
Unlock the connection.
virtual int64_t pull(Lock_Action lock_action, Data_Transfer data_transfer, Writable_Journal &client_journal, std::chrono::milliseconds wait=std::chrono::milliseconds(0))
Pull from the connection.
static void content_mismatch()
Called by handshake when the file and the connection do not match.
virtual int64_t handshake(const Readonly_Journal &client_journal, Content_Check content_check)
Called during Client construction.
joedb::Robust_Connection does not try to reconnect when thrown
int64_t get_checkpoint() const