Lines Matching refs:pAddr
2662 int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr ) in LSAPI_ParseSockAddr() argument
2683 pAddr->sa_family = AF_UNIX; in LSAPI_ParseSockAddr()
2684 strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p, in LSAPI_ParseSockAddr()
2685 sizeof(((struct sockaddr_un *)pAddr)->sun_path) ); in LSAPI_ParseSockAddr()
2689 pAddr->sa_family = AF_INET6; in LSAPI_ParseSockAddr()
2705 pAddr->sa_family = AF_INET; in LSAPI_ParseSockAddr()
2714 ((struct sockaddr_in *)pAddr)->sin_addr.s_addr = htonl(INADDR_ANY); in LSAPI_ParseSockAddr()
2717 ((struct sockaddr_in *)pAddr)->sin_addr.s_addr = htonl( INADDR_LOOPBACK ); in LSAPI_ParseSockAddr()
2721 if (!inet_pton(AF_INET, p, &((struct sockaddr_in *)pAddr)->sin_addr)) in LSAPI_ParseSockAddr()
2723 ((struct sockaddr_in *)pAddr)->sin_addr.s_addr = inet_addr( p ); in LSAPI_ParseSockAddr()
2724 if ( ((struct sockaddr_in *)pAddr)->sin_addr.s_addr == INADDR_BROADCAST) in LSAPI_ParseSockAddr()
2743 hints.ai_family = pAddr->sa_family; in LSAPI_ParseSockAddr()
2752 memcpy(pAddr, res->ai_addr, res->ai_addrlen); in LSAPI_ParseSockAddr()
2756 if ( pAddr->sa_family == AF_INET ) in LSAPI_ParseSockAddr()
2757 ((struct sockaddr_in *)pAddr)->sin_port = htons( port ); in LSAPI_ParseSockAddr()
2759 ((struct sockaddr_in6 *)pAddr)->sin6_port = htons( port ); in LSAPI_ParseSockAddr()