X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/ef514bbcec865ded4d2d040358e13c7432c15e1a..14c634e049bf7680c203b9755c349d5f575f2527:/src/internal.h diff --git a/src/internal.h b/src/internal.h index 3e85a58..bc5f542 100644 --- a/src/internal.h +++ b/src/internal.h @@ -501,6 +501,15 @@ void adns__querysend_tcp(adns_query qu, struct timeval now); * might be broken, but no reconnect will be attempted. */ +struct udpsocket *adns__udpsocket_by_af(adns_state ads, int af); +/* Find the UDP socket structure in ads which has the given address family. + * Return null if there isn't one. + * + * This is used during initialization, so ads is only partially filled in. + * The requirements are that nudp is set, and that udpsocket[i].af are + * defined for 0<=i