void NodesManager::checkIfNodeDescriptionComplete(unsigned id, const Node& description) { // we will call the virtual function only when we have received all local events and native functions if (description.isComplete() && description.connected) { nodeDescriptionReceived(id); nodeConnected(id); } }
void DescriptionsManager::checkIfNodeDescriptionComplete(unsigned id, const NodeDescription& description) { // we will call the virtual function only when we have received all local events and native functions if ((description.namedVariablesReceptionCounter == description.namedVariables.size()) && (description.localEventsReceptionCounter == description.localEvents.size()) && (description.nativeFunctionReceptionCounter == description.nativeFunctions.size()) ) nodeDescriptionReceived(id); }