Am 11.11.2013 17:08, schrieb Stephan Dilly:
I don't get the usage of resolveHost()...
How can I query the IP address of the server my vibe app is running on ?
You should be able to get that using core.sys.posix.unistd.gethostname
and by passing the result as a string to resolveHost
. If you need the
textual representation of the address, there iscore.sys.posix.arpa.inet_ntoa
.
These functions will eventually be available by some vibe.d function,
but aren't yet because of differences between Posix systems and Windows
(and different Windows versions).