summaryrefslogtreecommitdiff
path: root/webproxyconn.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-14 22:07:50 +0100
committerJavier <dev.git@javispedro.com>2015-12-14 22:07:50 +0100
commit5abd8e0359cfa1dc2437427f2f0446d8801441cb (patch)
treec02602e849cf47928411b8f0b3e9e6eb34facdc9 /webproxyconn.h
parent702e018ca9e780bb076033ce5d1d370d4eb7319e (diff)
downloadsapd-5abd8e0359cfa1dc2437427f2f0446d8801441cb.tar.gz
sapd-5abd8e0359cfa1dc2437427f2f0446d8801441cb.zip
initial ack controlflow implementation
Diffstat (limited to 'webproxyconn.h')
-rw-r--r--webproxyconn.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/webproxyconn.h b/webproxyconn.h
index 264e792..705428d 100644
--- a/webproxyconn.h
+++ b/webproxyconn.h
@@ -13,16 +13,24 @@ public:
WebProxyConn(SAPConnection *conn, QObject *parent = 0);
protected:
+ enum RequestMessageType {
+ RequestStartTransaction = 1,
+ RequestCancelTransaction = 4
+ };
+
struct RequestMessage {
quint8 command; // Seems to be always 1
- quint8 subCommand;
- quint8 type;
+ quint8 subCommand; // Seems to be always 1
+ RequestMessageType type;
quint8 transactionId; // Monotonically increasing
QByteArray payload;
};
static RequestMessage unpackRequestMessage(const QByteArray &data);
+ void handleStartTransaction(const RequestMessage &msg);
+ void handleCancelTransaction(const RequestMessage &msg);
+
private slots:
void handleMessageReceived();