Lines Matching refs:hints
1542 struct addrinfo hints, *res;
1545 memset(&hints, 0, sizeof(hints));
1547 hints.ai_family = AF_INET;
1549 hints.ai_family = AF_INET6;
1551 hints.ai_socktype = SOCK_DGRAM;
1552 hints.ai_protocol = IPPROTO_UDP;
1554 hints.ai_socktype = SOCK_STREAM;
1555 hints.ai_protocol = IPPROTO_TCP;
1557 hints.ai_flags = AI_ADDRCONFIG | flags;
1559 ret = getaddrinfo(servername, NULL, &hints, &res);
1584 struct addrinfo hints, *res;
1587 memset(&hints, 0, sizeof(hints));
1589 hints.ai_family = AF_INET;
1591 hints.ai_family = AF_INET6;
1593 hints.ai_socktype = SOCK_DGRAM;
1594 hints.ai_protocol = IPPROTO_UDP;
1596 hints.ai_socktype = SOCK_STREAM;
1597 hints.ai_protocol = IPPROTO_TCP;
1599 hints.ai_flags = AI_ADDRCONFIG;
1601 ret = getaddrinfo(localname, NULL, &hints, &res);