Lines Matching refs:hints
126 struct addrinfo hints, *local_res = NULL, *server_res = NULL; in create_socket() local
131 memset(&hints, 0, sizeof(hints)); in create_socket()
132 hints.ai_family = domain; in create_socket()
133 hints.ai_socktype = proto; in create_socket()
134 if ((gerror = getaddrinfo(local, NULL, &hints, &local_res)) != 0) in create_socket()
138 memset(&hints, 0, sizeof(hints)); in create_socket()
139 hints.ai_family = domain; in create_socket()
140 hints.ai_socktype = proto; in create_socket()
142 if ((gerror = getaddrinfo(server, portstr, &hints, &server_res)) != 0) { in create_socket()
260 struct addrinfo hints, *res; in netannounce() local
265 memset(&hints, 0, sizeof(hints)); in netannounce()
279 hints.ai_family = AF_INET6; in netannounce()
282 hints.ai_family = domain; in netannounce()
284 hints.ai_socktype = proto; in netannounce()
285 hints.ai_flags = AI_PASSIVE; in netannounce()
286 if ((gerror = getaddrinfo(local, portstr, &hints, &res)) != 0) in netannounce()