Lines Matching refs:af
897 const char* inet_ntop(int af, const void *restrict src, in inet_ntop() argument
904 if (af != AF_INET && af != AF_INET6) { in inet_ntop()
911 if (af == AF_INET) { in inet_ntop()
915 si.sin_family = af; in inet_ntop()
918 } else if (af == AF_INET6) { in inet_ntop()
922 si6.sin6_family = af; in inet_ntop()
937 int inet_pton(int af, const char *restrict src, void *restrict dst) in inet_pton() argument
943 if (af != AF_INET && af != AF_INET6) { in inet_pton()
950 if (af == AF_INET) { in inet_pton()
954 si.sin_family = af; in inet_pton()
955 status = WSAStringToAddressA((char*)src, af, NULL, (struct sockaddr*)&si, &len); in inet_pton()
958 } else if (af == AF_INET6) { in inet_pton()
962 si6.sin6_family = af; in inet_pton()
963 status = WSAStringToAddressA((char*)src, af, NULL, (struct sockaddr*)&si6, &len); in inet_pton()