示例#1
0
	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);
		}
	}
示例#2
0
	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);
	}