Creates a connection between a local port and a remote port, which automatically routes messages sent from the host port to the specified remote address on the remote host. While the connection exists, the connected port can receive messages only from the specified remote port.
The connection is active when you specify a default remote address with this call. To disconnect the default remote address, invoke this call and specify a NULL value for lpAddress. Once disconnected the port remains disconnected until specifically connected again. A port can be connected more than once, the most recent connection overriding all previous connections.
Note that there is no implied communication between the local and remote ports to make the connection.
NTXSTATUS ntxConnectRtPort(
NTXHANDLE hPort,
GENADDR pAddress
);
hPortpAddressE_OKE_OK 0x0000E_CONTEXT 0x0005E_EXIST 0x0006E_STATE 0x0007E_INVALID_ADDR 0x00E2E_UNBOUND 0x00EBE_TYPE 0x8002E_NUC_BAD_BUF 0x80E2E_LOCATIONE_NTX_INTERNAL_ERRORNote: Other status values may be generated by the service-specific VerifyAddress handler.
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 | intime/nt/include/ntx.h | ntx.h | ntx.lib |
| INtime 4.01 (64-bit Windows) | intime/nt/include/ntx.h | ntx.h | ntx64.lib |