I think we should avoid direct access to net.h here... best way perhaps is to use the ClientModel and introduce a ``setNetworkActive()`` function.