summaryrefslogtreecommitdiff
path: root/sapsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'sapsocket.h')
-rw-r--r--sapsocket.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/sapsocket.h b/sapsocket.h
index e1a9214..38d83ea 100644
--- a/sapsocket.h
+++ b/sapsocket.h
@@ -4,6 +4,8 @@
#include <QtCore/QObject>
#include <QtCore/QQueue>
+#include "sapchannelinfo.h"
+
class SAPConnection;
class SAPPeer;
@@ -11,12 +13,14 @@ class SAPSocket : public QObject
{
Q_OBJECT
- SAPSocket(SAPConnection *conn, int sessionId);
+ SAPSocket(SAPConnection *conn, int sessionId, const SAPChannelInfo &chanInfo);
public:
SAPPeer *peer();
SAPConnection *connection();
+ SAPChannelInfo channelInfo() const;
+
bool isOpen() const;
bool messageAvailable() const;
@@ -35,9 +39,16 @@ protected:
int sessionId() const;
private:
- int _sessionId;
+ bool isReliable() const;
+ bool isWithSeqNum() const;
+
+private:
+ const int _sessionId;
+ const SAPChannelInfo _info;
bool _open;
QQueue<QByteArray> _in;
+ quint16 _seqNum;
+ quint16 _expectedSeqNum;
friend class SAPPeer;
};