From 97c93d800287a21b971b763d58c1eebb30ece071 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 13 Dec 2015 05:50:18 +0100 Subject: fix broken decoding of multiple-channel connection requests --- webproxyagent.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'webproxyagent.cc') 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()); -- cgit v1.2.3