nxLibOpenTcpPort

Navigation:  NxLib API > C Interface > Other > NxLib >

nxLibOpenTcpPort

Previous pageReturn to chapter overviewNext page

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.

Signatures

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);

Parameters

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.

Return Value

none