Lines Matching refs:addr
142 } addr; in SocketStartup() local
143 addr.addrInet.sin_family = AF_INET; in SocketStartup()
144 addr.addrInet.sin_port = htons(port); in SocketStartup()
145 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); in SocketStartup()
147 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { in SocketStartup()
218 } addr; in Accept() local
228 addrlen = sizeof(addr); in Accept()
230 sock = accept(listenSock, &addr.addrPlain, &addrlen); in Accept()
245 remote_addr_ = addr.addrInet.sin_addr; in Accept()
246 remote_port_ = ntohs(addr.addrInet.sin_port); in Accept()
270 } addr; in Establish() local
321 memcpy(&addr.addrInet.sin_addr, pEntry->h_addr, pEntry->h_length); in Establish()
322 addr.addrInet.sin_family = pEntry->h_addrtype; in Establish()
324 addr.addrInet.sin_port = htons(options->port); in Establish()
326 LOG(INFO) << "Connecting out to " << inet_ntoa(addr.addrInet.sin_addr) << ":" in Establish()
327 << ntohs(addr.addrInet.sin_port); in Establish()
341 if (connect(clientSock, &addr.addrPlain, sizeof(addr)) != 0) { in Establish()
342 PLOG(ERROR) << "Unable to connect to " << inet_ntoa(addr.addrInet.sin_addr) << ":" in Establish()
343 << ntohs(addr.addrInet.sin_port); in Establish()
350 << inet_ntoa(addr.addrInet.sin_addr) << ":" << ntohs(addr.addrInet.sin_port) << ")"; in Establish()
458 } addr; in ProcessIncoming() local
461 tmpSock = accept(listenSock, &addr.addrPlain, &addrlen); in ProcessIncoming()