MIL_CONST_TEXT_PTR ConnectionDescriptor, | //in |
MIL_INT64 InitFlag, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *RemoteContextAppIdPtr | //out |
This function opens a connection to a local or remote computer that is running a publishing application, through the listening port of the publishing application. This function should be run from the monitoring application and it gives access to the MIL objects that the publishing application publishes (read-only or read/write). Once it opens the connection, this function returns the MIL application context identifier of the publishing application.
You must specify the monitoring application's connection port if the default connection port, set with the MILConfig utility, is different from the publishing application's listening port. Furthermore, if you have set up a passkey for publishing applications on the remote computer (using the MILConfig utility on the remote computer), you must specify the remote computer's passkey when establishing a connection from the monitoring application. A passkey permits a secure connection between the publishing and monitoring applications. The passkey is a case-sensitive alphanumeric string of up to 16 characters in length.
Note that the publishing application must have called MappControl() with M_DMIL_CONNECTION set to either M_DMIL_CONTROL or M_DMIL_MONITOR before the connection can take place.
Prior to connecting to a Distributed MIL publishing application, certain conditions must be met. For more information, see Chapter 48: Distributed MIL.
Specifies the computer to which to connect, and if necessary the listening port of the publishing application. A publishing application must have already enabled publishing using M_DMIL_CONNECTION.
For specifying the remote application
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmilpcie://[Passkey:]RemoteComputerName[:Port]") 1 |
[This is
only applicable to Matrox Supersight platform]
Opens a connection to a remote Matrox Supersight SHB. The connection uses the DMIL PCIe protocol. To connect to a remote Matrox Supersight SHB, that SHB must have a valid MIL installation and be in the same Matrox Supersight as the SHB running the monitoring application. When specifying the string that indicates the remote SHB:
[This is
only applicable to Matrox Supersight platform]
Opens a connection to a remote Matrox Supersight SHB. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmilshm://[Passkey:]localhost[:Port]") 1 |
Opens a connection to a Distributed MIL publishing application on the local computer using the DMIL SHM protocol. To connect to a publishing application on the local computer using the DMIL SHM protocol, the local computer must have a valid MIL installation. When specifying the string that indicates local computer:
The DMIL SHM protocol only supports connections to localhost. (summarize)Opens a connection to a Distributed MIL publishing application on the local computer using the DMIL SHM protocol. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmiltcp://[Passkey:]RemoteComputerName[:Port]") 1 |
Opens a connection to a Distributed MIL publishing application on a remote or local computer. To connect to a Distributed MIL remote or local computer, that computer must have a valid MIL installation. When specifying the string that indicates the remote computer (or local computer for a publishing application also running locally):
Opens a connection to a Distributed MIL publishing application on a remote or local computer. (more details...) |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |