mnGetClientIPTCP

This is used in server state (mnStartServer). Returned is the remote IP address used for TCP data transfer by the specified client.

C++ users: the memory for the returned string is managed by winsock. It is only guaranteed to remain valid before the next DarkNet command that uses winsock. In other words, if you want to use the address later on you should copy it to memory allocated by you. Note that because memory to the return string is allocated by winsock, you do not need to deallocate it yourself.

Parameters

int Instance: This is the instance that the command should use.

int ClientID: The client ID of the client whose remote TCP IP you wish to find.

Returns (Char*)

The remote IP address used for TCP data transfer by the specified client if no error occurred.

An empty string if an error occurred.

Present in

DBP

C++

.Net




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