Lines Matching refs:hints
264 struct addrinfo hints; in resolve_address() local
274 memset ((char *)&hints, 0, sizeof(hints)); in resolve_address()
275 hints.ai_socktype = SOCK_DGRAM; in resolve_address()
276 hints.ai_family = AF_UNSPEC; in resolve_address()
278 error = getaddrinfo(addrstr, NULL, &hints, &res); in resolve_address()
985 struct addrinfo hints; in get_context() local
988 memset(&hints, 0, sizeof(struct addrinfo)); in get_context()
989 hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in get_context()
990 hints.ai_socktype = SOCK_DGRAM; /* Coap uses UDP */ in get_context()
991 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_ALL; in get_context()
993 s = getaddrinfo(node, port, &hints, &result); in get_context()