-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add address query reply message #369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Minor suggestions on comment wording...
79884bb
to
db70d4e
Compare
Co-authored-by: Edward A. Lee <[email protected]>
Is there a plan on how we manage the updating of the RTI? How do we tell this to users? How do we even know if the running RTI is using the right version? Perhaps we shouldn't expect the RTI to be installed in the system until we have a proper versioning system. We can simply compile it alongside the federates and also place it in the |
In decentralized coordination, the federate sends MSG_TYPE_ADDRESS_QUERY to the RTI with the payload being the ID of the federate it wishes to connect to.
Then, the RTI will reply with the remote federate's port number and IP address, using the same message header MSG_TYPE_ADDRESS_QUERY.
I suggest the reply message header to be changed from MSG_TYPE_ADDRESS_QUERY to MSG_TYPE_ADDRESS_QUERY_REPLY.
I just pushed the MSG_TYPE number down. Since 18 was empty, didn't need to push down all the numbers. Future work will to make it in enums.
Since this changes the protocol after this merge, the RTI must be rebuilt.