network plugin: Add a `flush' callback.