From 9940aadd4becbff36aff3ec226e6c3e7e9fd3f99 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 | 12 +- MQTTSNGateway/src/tests/mainTestProcess.cpp | 2 +- MQTTSNPacket/src/MQTTSNPacket.c | 5 + MQTTSNPacket/src/MQTTSNPacket.h | 8 +- 28 files changed, 1338 insertions(+), 449 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 @@ - + -