Update: Add Aggregate Gateway functions. #127

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2018-08-04 17:46:42 +09:00
parent 862e501512
commit f7fc5c49f5
65 changed files with 4368 additions and 1982 deletions

View File

@@ -23,19 +23,18 @@
using namespace MQTTSNGW;
/*
* Gateway Process
* Gateway Application
*/
Gateway* gw = new Gateway();
PacketHandleTask task1(gw);
ClientRecvTask task2(gw);
ClientSendTask task3(gw);
BrokerRecvTask task4(gw);
BrokerSendTask task5(gw);
Gateway gateway;
PacketHandleTask task1(&gateway);
ClientRecvTask task2(&gateway);
ClientSendTask task3(&gateway);
BrokerRecvTask task4(&gateway);
BrokerSendTask task5(&gateway);
int main(int argc, char** argv)
{
gw->initialize(argc, argv);
gw->run();
delete gw;
gateway.initialize(argc, argv);
gateway.run();
return 0;
}