+
+ /* If TCP worked, then we require that UDP works as well. */
+
+ int udp_fd = socket(aip->ai_family, SOCK_DGRAM, IPPROTO_UDP);
+
+ if(udp_fd == -1) {
+ success = false;
+ break;
+ }
+
+ result = bind(udp_fd, aip->ai_addr, aip->ai_addrlen);
+ closesocket(udp_fd);
+
+ if(result) {
+ success = false;
+ break;
+ }
+
+ success = true;