DHCP server main loop (Kea 1.8.0) Main Loop Event Loop Wait for next event I/O Service Execute ready handler Check Shutdown Signal Handle Signal External Socket Handle External Socket DHCP Query Process Query Timeout get next event got signal external socket ready DHCP socket ready timeout expired handler ready no ready handler execute ready handler dashed arrow means priority