Asynchronous event-driven networking framework