Have a Linux system (as part of my project), where I might have to do hot-code-loading, i.e. update parts of the software, over-the-air (s.a. downloading the software over WiFi) or over-the-wire (over LAN). There are 2 parts of this software, one part written in C++ and another in Erlang. The C++ part talks to some external entities over TCP/IP (a set of 6-7 odd proprietary protocols). The part which I need to mostly do hot-loading of, is the C++ part that talks to those external entities. The C++ part talks to Erlang over ports (under development currently), but I would like to change that to NIFs (sometime in future).
Can someone suggest some strategies for hot-code-loading of C++ functionality. I am aware of Erlang's ability to do, but my understanding is that the functionality doesn't extend over to the part written in C++.
Also, I need to ensure that the C++ module containing proprietary protocol implementation, is from "valid source". What might be the right strategy for that ?
I guess, my requirements are not uncommon, so if such modules, frameworks, libraries exist, would be happy to be pointed to those.