<< Click to Display Table of Contents >> Navigation: NxLib API > C Interface > Other > NxLib > nxLibOpenTcpPort |
Opens a TCP port on which NxLibRemote can connect to the current NxLib instance.
Note: This function is only available in the NxLib Interface. NxLibRemote provides the corresponding functions nxLibConnect and nxLibDisconnect.
Variants throwing exceptions on errors:
static void nxLibOpenTcpPort(int portNumber = 0, int* openedPort = 0)
Variants returning an error code in an int* parameter:
void nxLibOpenTcpPort (NXLIBERR* result, NXLIBINT portNumber, NXLIBINT* openedPort);
result |
The error code of the operation. |
portNumber |
The port to open. Specify 0 here to automatically choose a port in the range 24000 to 25000. |
openedPort |
A pointer to a variable receiving the opened port number. |
none