BugFix: Que template

Update: Add ProcessFramework test and change Makefile for it.


Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2016-10-01 08:47:10 +09:00
parent e3dd9fa01a
commit 76f58a60a3
19 changed files with 415 additions and 57 deletions

View File

@@ -25,18 +25,17 @@ using namespace MQTTSNGW;
/*
* Gateway Process
*/
Gateway* gateway = new Gateway();
PacketHandleTask* t0 = new PacketHandleTask(gateway);
ClientRecvTask* t1 = new ClientRecvTask(gateway);
ClientSendTask* t2 = new ClientSendTask(gateway);
BrokerRecvTask* t3 = new BrokerRecvTask(gateway);
BrokerSendTask* t4 = new BrokerSendTask(gateway);
Gateway* gw = new Gateway();
PacketHandleTask task1(gw);
ClientRecvTask task2(gw);
ClientSendTask task3(gw);
BrokerRecvTask task4(gw);
BrokerSendTask task5(gw);
int main(int argc, char** argv)
{
gateway->initialize(argc, argv);
gateway->run();
delete gateway;
gw->initialize(argc, argv);
gw->run();
delete gw;
return 0;
}