void EndpointBindings::notifyEvent(EndpointNotification nt, shared_ptr<string> payload) { auto it = eventSubscriptions.find(nt); if (it != eventSubscriptions.end()) { shared_ptr<Subscribers> s = it->second; if (s) { for (tuple<Address, TriggerId> t : *s) { // TODO we need to add the source of the message (4th argument) sendFn(get<0>(t), get<1>(t), payload, defaultAddress); } } } }
PPClsPack* PPAppReceiver::proxy_hello(PPClsPack& args) { dbgPrint(0, "calling proxyhello"); int* iArg = (int*)args(0).getData(); dbgPrint(0, "data=%d", *iArg); dumpCharArray((char*)iArg); dumpCharArray(args(0).getData()); *iArg *= -1; PPClsPack argRet(1); argRet(0) <<= PPFunPack(4, (char*)iArg); sendFn(argRet); dbgPrint(0, "proxyhello ended"); }