Skip to content
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

Merged
merged 6 commits into from
Feb 27, 2024
Merged

Add address query reply message #369

merged 6 commits into from
Feb 27, 2024

Conversation

Jakio815
Copy link
Collaborator

@Jakio815 Jakio815 commented Feb 26, 2024

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.

@Jakio815 Jakio815 marked this pull request as ready for review February 26, 2024 23:47
Copy link
Contributor

@edwardalee edwardalee left a 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...

include/core/federated/network/net_common.h Outdated Show resolved Hide resolved
lhstrh added a commit that referenced this pull request Feb 27, 2024
@lhstrh lhstrh force-pushed the address_query_reply branch from 79884bb to db70d4e Compare February 27, 2024 04:40
@Jakio815 Jakio815 changed the title Draft: Add address query reply message Add address query reply message Feb 27, 2024
@Jakio815 Jakio815 merged commit ee6244f into main Feb 27, 2024
20 checks passed
@Jakio815 Jakio815 deleted the address_query_reply branch February 27, 2024 18:26
@Jakio815 Jakio815 restored the address_query_reply branch February 27, 2024 23:17
@cmnrd
Copy link
Contributor

cmnrd commented Feb 28, 2024

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 bin directory.

lhstrh added a commit that referenced this pull request Feb 28, 2024
This reverts commit ee6244f, reversing
changes made to ec3b6de.
@lhstrh lhstrh added the enhancement Enhancement of existing feature label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants