Lines Matching refs:addr
88 PRNetAddr addr;
99 addr.inet.family = PR_AF_INET;
100 addr.inet.port = PR_htons((PRUint16)port);
101 addr.inet.ip = PR_htonl(PR_INADDR_LOOPBACK);
102 PR_snprintf(buf, sizeof(buf), "%hu", addr.inet.ip);
110 retVal = PR_Connect(sock, &addr, PR_INTERVAL_NO_TIMEOUT);
158 PRNetAddr addr;
175 addr.inet.family = PR_AF_INET;
176 addr.inet.ip = PR_htonl(PR_INADDR_ANY);
177 addr.inet.port = PR_htons(0);
178 if (PR_Bind(listenSock, &addr) == PR_FAILURE) {
182 if (PR_GetSockName(listenSock, &addr) == PR_FAILURE) {
186 listenPort = PR_ntohs(addr.inet.port);