sony / nmos-cpp

An NMOS (Networked Media Open Specifications) Registry and Node in C++ (IS-04, IS-05)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could nmos-cpp handle updates to IP addresses automatically?

garethsb opened this issue · comments

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: