mnGetHostName

This command returns the name of your computer, as retrieved by mnStart.

This command must be used after mnStart.

C++ users: the memory for the returned string is managed by DarkNet and is guaranteed to remain unchanged and available until mnFinish(-1) is used. This means that you do not need to deallocate the memory.

Parameters

None

Returns (Char*)

The computer’s name.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Networking Commands
(1) Networking
(0) DarkNet Help