UDP datagram handling almost done