summaryrefslogtreecommitdiff
path: root/webproxyagent.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-13 05:50:18 +0100
committerJavier <dev.git@javispedro.com>2015-12-13 05:50:18 +0100
commit97c93d800287a21b971b763d58c1eebb30ece071 (patch)
tree29aed96db3984520b76bbc53209b285ecf9fcbfa /webproxyagent.cc
parentcd00ce1a7128cf11fa59e7a03bec49ea69425f54 (diff)
downloadsapd-97c93d800287a21b971b763d58c1eebb30ece071.tar.gz
sapd-97c93d800287a21b971b763d58c1eebb30ece071.zip
fix broken decoding of multiple-channel connection requests
Diffstat (limited to 'webproxyagent.cc')
-rw-r--r--webproxyagent.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/webproxyagent.cc b/webproxyagent.cc
index 186912f..126cd75 100644
--- a/webproxyagent.cc
+++ b/webproxyagent.cc
@@ -46,11 +46,18 @@ void WebProxyAgent::registerServices(SAPManager *manager)
service.setVersion(2, 0);
service.setConnectionTimeout(0);
+ channel.setChannelId(501);
+ channel.setPayloadType(SAPChannelInfo::PayloadBinary);
+ channel.setQoSType(SAPChannelInfo::QoSReliabilityEnable);
+ channel.setQoSDataRate(SAPChannelInfo::QoSDataRateLow);
+ channel.setQoSPriority(SAPChannelInfo::QoSPriorityLow);
+ service.addChannel(channel);
+
channel.setChannelId(502);
channel.setPayloadType(SAPChannelInfo::PayloadBinary);
- channel.setQoSType(SAPChannelInfo::QoSRestricted);
+ channel.setQoSType(SAPChannelInfo::QoSReliabilityEnable);
channel.setQoSDataRate(SAPChannelInfo::QoSDataRateLow);
- channel.setQoSPriority(SAPChannelInfo::QoSPriorityHigh);
+ channel.setQoSPriority(SAPChannelInfo::QoSPriorityLow);
service.addChannel(channel);
manager->registerServiceAgent(service, instance());