User's Guide > Asynchronous Mode > Connecting to a Creo Parametric Process
Connecting to a Creo Parametric Process
Methods Introduced:
A simple asynchronous application can also connect to a Creo Parametric process that is already running on a local computer. The method pfcAsyncConnection::Connect performs this connection. This method fails to connect if multiple Creo Parametric sessions are running. If several versions of Creo Parametric are running on the same computer, try to connect by specifying user and display parameters. However, if several versions of Creo Parametric are running in the same user and display parameters, the connection may not be possible.
pfcAsyncConnection::GetActiveConnection returns the current connection to a Creo Parametric session.
To disconnect from a Creo Parametric process, call the method pfcAsyncConnection::Disconnect. This method can be called only if you used the method pfcAsyncConnection::Connect to get the connection.
The connection to a Creo Parametric process uses information provided by the name service daemon. The name service daemon accepts and supplies information about the processes running on the specified hosts. The application manager, for example, uses the name service when it starts up Creo Parametric and other processes. The name service daemon is set up as part of the Creo Parametric installation.
Was this helpful?