diff options
Diffstat (limited to 'sapsocket.h')
-rw-r--r-- | sapsocket.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sapsocket.h b/sapsocket.h index 38d83ea..a2a360a 100644 --- a/sapsocket.h +++ b/sapsocket.h @@ -3,6 +3,7 @@ #include <QtCore/QObject> #include <QtCore/QQueue> +#include <QtCore/QBasicTimer> #include "sapchannelinfo.h" @@ -38,6 +39,8 @@ protected: int sessionId() const; + virtual void timerEvent(QTimerEvent *event) override; + private: bool isReliable() const; bool isWithSeqNum() const; @@ -47,8 +50,15 @@ private: const SAPChannelInfo _info; bool _open; QQueue<QByteArray> _in; - quint16 _seqNum; - quint16 _expectedSeqNum; + QBasicTimer _timer; + + /** Outgoing sequence number */ + quint16 _outLastSeqNum; + + /** Next expected incoming sequence number */ + quint16 _inLastSeqNum; + /** Last acknowledged sequence number */ + quint16 _inLastAck; friend class SAPPeer; }; |