Lines Matching refs:hostname
33 BNetAddress::BNetAddress(const char* hostname, unsigned short port)
37 SetTo(hostname, port);
65 BNetAddress::BNetAddress(const char* hostname, const char* protocol,
70 SetTo(hostname, protocol, service);
123 * hostname: Host name associated with this instance (default: NULL).
124 * In this particular implementation, hostname will be an
139 * The hostname output parameter can be a variety of things, but in this
143 * Make sure hostname is large enough or you will step on someone
149 BNetAddress::GetAddr(char* hostname, unsigned short* port) const
157 if (hostname != NULL) {
163 strcpy(hostname, text);
324 * Set hostname and port network address data.
327 * hostname: Can be one of three things:
329 * 2. A canonical hostname.
338 BNetAddress::SetTo(const char* hostname, unsigned short port)
340 if (hostname == NULL)
345 // Try like all git-out to set the address from the given hostname.
348 addr = inet_addr(hostname);
350 // See if we can resolve the hostname to an IP address.
351 struct hostent* host = gethostbyname(hostname);
432 * Set from passed in hostname and protocol/service information.
435 * hostname: Can be one of three things:
437 * 2. A canonical hostname.
456 BNetAddress::SetTo(const char* hostname, const char* protocol,
463 return SetTo(hostname, serviceEntry->s_port);