Function to get the current hostname for both Windows and Posix
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sun Aug 27 21:33:57 UTC 2023
On Sunday, August 27, 2023 10:02:35 AM MDT vino via Digitalmars-d-learn wrote:
> Hi All,
>
> May i know whether these is function to find the current
> hostname both in windows and Posix.
>
> From,
> Vino
It looks like std.socket's Socket.hostName will do the trick.
https://dlang.org/phobos/std_socket.html#.Socket.hostName
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list