Lines Matching refs:dstaddr
481 struct sockaddr_in dstaddr; in lws_plat_inet_pton() local
482 int dstaddrlen = sizeof(dstaddr); in lws_plat_inet_pton()
484 memset(&dstaddr, 0, sizeof(dstaddr)); in lws_plat_inet_pton()
485 dstaddr.sin_family = AF_INET; in lws_plat_inet_pton()
487 if (!WSAStringToAddressW(buffer, af, 0, (struct sockaddr *) &dstaddr, &dstaddrlen)) { in lws_plat_inet_pton()
489 memcpy(dst, &dstaddr.sin_addr, sizeof(dstaddr.sin_addr)); in lws_plat_inet_pton()
493 struct sockaddr_in6 dstaddr; in lws_plat_inet_pton() local
494 int dstaddrlen = sizeof(dstaddr); in lws_plat_inet_pton()
496 memset(&dstaddr, 0, sizeof(dstaddr)); in lws_plat_inet_pton()
497 dstaddr.sin6_family = AF_INET6; in lws_plat_inet_pton()
499 if (!WSAStringToAddressW(buffer, af, 0, (struct sockaddr *) &dstaddr, &dstaddrlen)) { in lws_plat_inet_pton()
501 memcpy(dst, &dstaddr.sin6_addr, sizeof(dstaddr.sin6_addr)); in lws_plat_inet_pton()