Lines Matching refs:port
33 BNetAddress::BNetAddress(const char* hostname, unsigned short port)
37 SetTo(hostname, port);
49 BNetAddress::BNetAddress(in_addr addr, int port)
53 SetTo(addr, port);
57 BNetAddress::BNetAddress(uint32 addr, int port)
61 SetTo(addr, port);
127 * port: Port number associated with this instance
136 * Hostname and/or port can be NULL; although having them both NULL would
149 BNetAddress::GetAddr(char* hostname, unsigned short* port) const
154 if (port != NULL)
155 *port = ntohs(fPort);
184 * with both POSIX and non-POSIX versions of said struct. The port and
214 * port: optional port number to fill.
220 * Output port will be in host byte order, but addr will be in the usual
223 status_t BNetAddress::GetAddr(in_addr& addr, unsigned short* port) const
230 if (port != NULL)
231 *port = ntohs(fPort);
324 * Set hostname and port network address data.
332 * port: Duh.
338 BNetAddress::SetTo(const char* hostname, unsigned short port)
359 fPort = htons(port);
392 Set from passed in address and port.
395 \param port Optional port number.
400 BNetAddress::SetTo(in_addr addr, int port)
403 fPort = htons((short)port);
411 Set from passed in address and port.
414 \param port Optional port number.
419 BNetAddress::SetTo(uint32 addr, int port)
422 fPort = htons((short)port);
452 * determine the port number (see getservbyname(3)). This method will