Lines Matching refs:port
126 char port[16];
127 sprintf(port, ".%d.%d", Port() >> 8, Port() & 0xff);
128 strcat(uAddr, port);
151 uint16 port;
155 port = reinterpret_cast<const sockaddr_in*>(&fAddress)->sin_port;
158 port = reinterpret_cast<const sockaddr_in6*>(&fAddress)->sin6_port;
161 port = 0;
164 return ntohs(port);
169 PeerAddress::SetPort(uint16 port)
171 port = htons(port);
175 reinterpret_cast<sockaddr_in*>(&fAddress)->sin_port = port;
178 reinterpret_cast<sockaddr_in6*>(&fAddress)->sin6_port = port;
275 AddressResolver::ForcePort(uint16 port)
277 fForcedPort = htons(port);
278 fAddress.SetPort(port);
655 uint16 port, attempt = 0;
660 port = get_random<uint16>() % (IPPORT_RESERVED - NFS_MIN_PORT);
661 port += NFS_MIN_PORT;
664 port = 0;
667 address.SetPort(port);
711 uint16 port)
721 address.SetPort(port);