mnSetLocal

This is used to set the local ports and IP addresses for the instance to use.

If this command is not used or IP parameters are set to an empty string or port parameters are set to 0, the local information will be set automatically.

If UDP is disabled (mnDisableUDP) the UDP parameters are ignored.

This command must be used when the instance is uninitialized.

Parameters

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

const char * TCP_Local_IP: This is the local IP for the instance to use for TCP.

unsigned short TCP_Local_port: This is the local port for the instance to use for TCP.

const char * UDP_Local_IP: This is the local IP for the instance to use for UDP.

unsigned short UDP_Local_port: This is the local port for the instance to use for UDP.

Returns (Integer)

0 if no error occurred

-1 if an error occurred.

Present in

DBP

C++

.Net




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