get rid of publisher and fetcher
modify SyncAppSocket API
modify SyncLogic API
Tweak SeqNo
diff --git a/model/sync-seq-no.h b/model/sync-seq-no.h
index 5dbe490..4f84482 100644
--- a/model/sync-seq-no.h
+++ b/model/sync-seq-no.h
@@ -122,6 +122,26 @@
}
bool
+ operator <= (const SeqNo &seq) const
+ {
+ return m_session <= seq.m_session || (m_session == seq.m_session && m_seq <= seq.m_seq);
+ }
+
+ SeqNo &
+ operator ++ ()
+ {
+ m_seq ++;
+ return *this;
+ }
+
+ SeqNo &
+ operator --()
+ {
+ m_seq --;
+ return *this;
+ }
+
+ bool
isValid () const
{
return m_valid;