summaryrefslogtreecommitdiff
path: root/sapsocket.h
diff options
context:
space:
mode:
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;