summaryrefslogtreecommitdiff
path: root/saprotocol.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-16 02:10:10 +0100
committerJavier <dev.git@javispedro.com>2015-12-16 02:10:10 +0100
commit309947a4316a94f4c5d43c9b39b733cc3bbab459 (patch)
treea339058f8e1c3045240d71ab961c7ec1effdd947 /saprotocol.cc
parentaabf2deebb9619e21f1ebac0690c6b206b16b251 (diff)
downloadsapd-309947a4316a94f4c5d43c9b39b733cc3bbab459.tar.gz
sapd-309947a4316a94f4c5d43c9b39b733cc3bbab459.zip
implement session termination requests
Diffstat (limited to 'saprotocol.cc')
-rw-r--r--saprotocol.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/saprotocol.cc b/saprotocol.cc
index 94594a1..00c083f 100644
--- a/saprotocol.cc
+++ b/saprotocol.cc
@@ -392,8 +392,8 @@ SAProtocol::ServiceConnectionResponseFrame SAProtocol::unpackServiceConnectionRe
int offset = 0;
frame.messageType = read<quint8>(data, offset);
- frame.acceptorId = read<quint8>(data, offset);
- frame.initiatorId = read<quint8>(data, offset);
+ frame.acceptorId = read<quint16>(data, offset);
+ frame.initiatorId = read<quint16>(data, offset);
int marker = data.indexOf(';', offset);
if (marker == -1) {
@@ -446,8 +446,8 @@ SAProtocol::ServiceTerminationRequestFrame SAProtocol::unpackServiceTerminationR
int offset = 0;
frame.messageType = read<quint8>(data, offset);
- frame.acceptorId = read<quint8>(data, offset);
- frame.initiatorId = read<quint8>(data, offset);
+ frame.acceptorId = read<quint16>(data, offset);
+ frame.initiatorId = read<quint16>(data, offset);
int marker = data.indexOf(';', offset);
if (marker == -1) {
@@ -480,8 +480,8 @@ SAProtocol::ServiceTerminationResponseFrame SAProtocol::unpackServiceTermination
int offset = 0;
frame.messageType = read<quint8>(data, offset);
- frame.acceptorId = read<quint8>(data, offset);
- frame.initiatorId = read<quint8>(data, offset);
+ frame.acceptorId = read<quint16>(data, offset);
+ frame.initiatorId = read<quint16>(data, offset);
int marker = data.indexOf(';', offset);
if (marker == -1) {