From d7390c536d0fa15fb0fe7a47a7697941c28e238e Mon Sep 17 00:00:00 2001 From: tomoaki Date: Thu, 26 Jul 2018 17:42:12 +0900 Subject: [PATCH] Add The forwarder Encapsulation mesage #27 #69 Signed-off-by: tomoaki --- .cproject | 4 +- .../GatewayTester/samples/mainTest.cpp | 2 +- MQTTSNGateway/GatewayTester/src/LGwProxy.cpp | 679 ++++++++++-------- MQTTSNGateway/GatewayTester/src/LGwProxy.h | 108 +-- .../GatewayTester/src/LMqttsnClientApp.h | 4 +- .../GatewayTester/src/LNetworkUdp.cpp | 10 +- MQTTSNGateway/Makefile | 5 + MQTTSNGateway/README.md | 10 +- MQTTSNGateway/forwarders.conf | 16 + MQTTSNGateway/gateway.conf | 9 +- MQTTSNGateway/src/MQTTSNGWClient.cpp | 51 +- MQTTSNGateway/src/MQTTSNGWClient.h | 12 +- MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp | 97 ++- MQTTSNGateway/src/MQTTSNGWClientSendTask.cpp | 26 +- MQTTSNGateway/src/MQTTSNGWClientSendTask.h | 1 + .../src/MQTTSNGWConnectionHandler.cpp | 5 +- MQTTSNGateway/src/MQTTSNGWDefines.h | 3 +- .../src/MQTTSNGWEncapsulatedPacket.cpp | 179 +++++ .../src/MQTTSNGWEncapsulatedPacket.h | 65 ++ MQTTSNGateway/src/MQTTSNGWForwarder.cpp | 321 +++++++++ MQTTSNGateway/src/MQTTSNGWForwarder.h | 88 +++ MQTTSNGateway/src/MQTTSNGWVersion.h | 2 +- MQTTSNGateway/src/MQTTSNGateway.cpp | 50 +- MQTTSNGateway/src/MQTTSNGateway.h | 13 +- MQTTSNGateway/src/tests/TestProcess.cpp | 8 +- MQTTSNPacket/src/MQTTSNPacket.c | 5 + MQTTSNPacket/src/MQTTSNPacket.h | 8 +- 27 files changed, 1334 insertions(+), 447 deletions(-) create mode 100644 MQTTSNGateway/forwarders.conf create mode 100644 MQTTSNGateway/src/MQTTSNGWEncapsulatedPacket.cpp create mode 100644 MQTTSNGateway/src/MQTTSNGWEncapsulatedPacket.h create mode 100644 MQTTSNGateway/src/MQTTSNGWForwarder.cpp create mode 100644 MQTTSNGateway/src/MQTTSNGWForwarder.h diff --git a/.cproject b/.cproject index d61f694..c3137e8 100644 --- a/.cproject +++ b/.cproject @@ -14,14 +14,14 @@ - + -