Dispatches network events.