summaryrefslogtreecommitdiff
path: root/sapsocket.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-24 19:04:04 +0100
committerJavier <dev.git@javispedro.com>2015-12-24 19:04:04 +0100
commit14d20babe395e52d220bbc27e91cec2fddd1ed0f (patch)
tree4cd71caf6b0b8a8e4be7d4d3fb1306536a726346 /sapsocket.h
parent309947a4316a94f4c5d43c9b39b733cc3bbab459 (diff)
downloadsapd-14d20babe395e52d220bbc27e91cec2fddd1ed0f.tar.gz
sapd-14d20babe395e52d220bbc27e91cec2fddd1ed0f.zip
still testing sap control flow
Diffstat (limited to 'sapsocket.h')
-rw-r--r--sapsocket.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/sapsocket.h b/sapsocket.h
index 0452e9d..ce3c98b 100644
--- a/sapsocket.h
+++ b/sapsocket.h
@@ -36,6 +36,7 @@ signals:
protected:
void setOpen(bool open);
void acceptIncomingData(const QByteArray &data);
+ void acceptIncomingControl(const QByteArray &data);
int sessionId() const;
@@ -45,18 +46,24 @@ private:
bool isReliable() const;
bool isWithSeqNum() const;
+ void sendBlockAck(int seqNum);
+ void sendPacket(int seqNum, const QByteArray &data);
+
+ void handleBlockAck(int seqNum);
+ void sendPacketsFromQueue();
+
private:
const int _sessionId;
const SAPChannelInfo _info;
bool _open;
QQueue<QByteArray> _in;
QQueue<QByteArray> _out;
- QBasicTimer _timer;
+ QBasicTimer _ackTimer;
+ QBasicTimer _resendTimer;
- /** Outgoing sequence number */
- quint16 _outLastSeqNum;
/** Last acknowledged sent message. */
quint16 _outLastAck;
+ quint16 _outFlyingPkts;
/** Next expected incoming sequence number */
quint16 _inLastSeqNum;