Lines Matching refs:ai_socktype
654 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) {
659 tmp.ai_socktype = SOCK_STREAM; tmp.ai_protocol = IPPROTO_TCP;
663 tmp.ai_socktype = SOCK_DGRAM; tmp.ai_protocol = IPPROTO_UDP;
683 res->ai_socktype = hints->ai_socktype;
771 if (!hints->ai_protocol && hints->ai_socktype) {
772 if (hints->ai_socktype == SOCK_DGRAM)
774 else if (hints->ai_socktype == SOCK_STREAM)
779 if (!hints->ai_socktype && hints->ai_protocol) {
781 hints->ai_socktype = SOCK_DGRAM;
783 hints->ai_socktype = SOCK_STREAM;
786 hints->ai_socktype = SOCK_STREAM;
1070 giving a numeric port without giving an ai_socktype was verboten.
1106 hints.ai_socktype = SOCK_STREAM;
1168 if (ai->ai_socktype || ai->ai_protocol)
1174 ai->ai_socktype = SOCK_STREAM;
1176 ai_new->ai_socktype = SOCK_DGRAM;
1243 need_np_hack = need_numeric_port_hack() && servname && !hints.ai_socktype
1455 return "servname not supported for ai_socktype";
1457 return "ai_socktype not supported";