Initialize udp socket nonblocking
Respond correctly to non-blocking events
write callback for stub requests

which is nice for scheduling retries etc.