digitalmars.D.learn - Function to get the current hostname for both Windows and Posix
- vino (5/5) Aug 27 2023 Hi All,
- Jonathan M Davis (4/9) Aug 27 2023 It looks like std.socket's Socket.hostName will do the trick.
- Vino (2/14) Aug 27 2023 Thank you.
Hi All, May i know whether these is function to find the current hostname both in windows and Posix. From, Vino
Aug 27 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, VinoIt looks like std.socket's Socket.hostName will do the trick. https://dlang.org/phobos/std_socket.html#.Socket.hostName - Jonathan M Davis
Aug 27 2023
On Sunday, 27 August 2023 at 21:33:57 UTC, Jonathan M Davis wrote:On Sunday, August 27, 2023 10:02:35 AM MDT vino via Digitalmars-d-learn wrote:Thank you.Hi All, May i know whether these is function to find the current hostname both in windows and Posix. From, VinoIt looks like std.socket's Socket.hostName will do the trick. https://dlang.org/phobos/std_socket.html#.Socket.hostName - Jonathan M Davis
Aug 27 2023