Lines Matching defs:server
303 DnsServer *server,
314 if (server) {
318 sa.sa.sa_family = server->family;
319 if (server->family == AF_INET) {
321 sa.in.sin_addr = server->address.in;
323 } else if (server->family == AF_INET6) {
325 sa.in6.sin6_addr = server->address.in6;
397 int dns_scope_socket_udp(DnsScope *s, DnsServer *server, uint16_t port) {
398 return dns_scope_socket(s, SOCK_DGRAM, AF_UNSPEC, NULL, server, port);
401 int dns_scope_socket_tcp(DnsScope *s, int family, const union in_addr_union *address, DnsServer *server, uint16_t port) {
402 return dns_scope_socket(s, SOCK_STREAM, family, address, server, port);