ContentsIndexPreviousNext

2.2.1 Terminating the Remote Application

By default, AcuConnect leaves the server runtime in memory with an open connection until the client application exits. This allows you to CALL the application as often as necessary without having to restart the server runtime.

If you want to close the connection after a CALL is completed, you must embed a CANCEL or CANCEL ALL in your client program and set a configuration file variable in the "client.cfg" file. This variable is ACUCONNECT-CLOSE-AFTER-CANCEL. Set to "0", this variable leaves the remote application open until the client application exits. Set to "1", this variable closes the remote application whenever a CANCEL occurs in the program.


Note: If you make asynchronous CALLs using the C$ASYNCRUN routine described in Section 2.3.1 CALLing C$ASYNCRUN, it is not necessary to embed a CANCEL in your client program. The routine used to check application status, C$ASYNCPOLL, closes the remote application automatically when it receives a "completed" status indicator.
You can not set ACUCONNECT-CLOSE-AFTER-CANCEL from within a program.