Been using Udp a lot and believe when the packet fails to send successfully it should return 0, and on success a 1.
From cores/esp32/Udp.h
// Returns 1 if the packet was sent successfully, 0 if there was an error virtual int endPacket() =0;
Below screen shots to support.

