I am no sure what to yo want, you can add a parameter to the application that must know the manager for examplestring managerNodeId;
And in the ini files you can include this information
**.host[0].**.managerNodeId = "node[0]"
And in the maneger node you can read the parameter and identify the node, and later, you can use L3AddressResolve to translate the name to the IP address of the manager.
Enviado: viernes, 15 de mayo de 2020 3:05
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] [OMNeT++] Aassign parameters to another (from different network)
--Dear all,
I am not familiar with omnet ++ and C ++.Do you have any ideas on how to assign parameters to another?The parameters come from different networks.(Kindly please see the attached files.)
For example,Assign node [0] to host [0] as group manager
thanks for your help.:)
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.
You can find many cases in inet where the code use l3addressresolver
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/9a3cbf26-521a-488c-8317-c979f93e5a18%40googlegroups.com.
Better in the source code, most of the sources uses L3AddressResolver to translate the name of the destination node to the ip address of the destination address.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/fa6ec6f6-bbaf-483e-b749-ed3a55e1108f%40googlegroups.com.
L3AddressResolver is used by all sources in the directory app, if you use an all version of inet it is possible that the name could be different.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/6ffc18ae-3ca5-482e-8804-02cd8e064663%40googlegroups.com.