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

Could nmos-cpp handle updates to IP addresses automatically? #245

Open
garethsb opened this issue Mar 9, 2022 · 0 comments
Open

Could nmos-cpp handle updates to IP addresses automatically? #245

garethsb opened this issue Mar 9, 2022 · 0 comments

Comments

@garethsb
Copy link
Contributor

garethsb commented Mar 9, 2022

IP addresses can change dynamically on interfaces, e.g. due to DHCP renewal.

If an NMOS service is running when this happens, a number of things are required:

  1. The change needs to be detected
  2. http_listener or websocket_listener servers may need to be closed and reopened
  3. Resource attributes may need to be updated (e.g. href and address) and the resources re-registered
  4. Thread function state may need to be updated (e.g. where currently copied out of settings into local variables)

A current workaround for the actions 2-4 is to tear down the nmos::server and relaunch with new settings.

Probably platform-specific code is required simply to get a notification about IP address changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant