HostAndPort

Constructors

this
this(string host, int port)
Undocumented in source.

Members

Functions

getHost
string getHost()
Undocumented in source. Be warned that the author may not have intended to support it.
getPort
int getPort()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object obj)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

convertHost
string convertHost(string host)
Undocumented in source. Be warned that the author may not have intended to support it.
extractParts
string[] extractParts(string from)

* Splits string into host and port parts. * string must be in ( host ~ ":" ~ port ) format. * Port is optional * @param from string to parse * @return array of host and port strings

getLocalHostQuietly
string getLocalHostQuietly()
Undocumented in source. Be warned that the author may not have intended to support it.
getLocalhost
string getLocalhost()

This method resolves the localhost in a 'lazy manner'.

parseString
HostAndPort parseString(string from)

* Creates HostAndPort instance from string. * string must be in ( host ~ ":" ~ port ) format. * Port is mandatory. Can convert host part. * @see #convertHost(string) * @param from string to parse * @return HostAndPort instance

setLocalhost
void setLocalhost(string localhost)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

localhost
string localhost;
Undocumented in source.

Meta