This tries to outline what C++ API could be provided to the module writer. This might not be what the API at the border between the modules and the node binary is (which may look more like what is in the previous section) but would provide a more C++ friendly API>
All C/C++ methods will be passed a node::ni::ni_env object as