contents.gifindex.gifprev1.gifnext1.gif

Synchronous or Asynchronous Operation

By default, the client application waits in a suspended state until the remote application performs its task and returns a result (i.e., a "synchronous" CALL is performed). If desired, you can allow the client application to continue running by CALLing a new library routine, C$ASYNCRUN, along with the remote application. In this case, you specify the "handle" of the remote application, as well as the application name itself. For instance:

CALL "C$ASYNCRUN" using handle-of-prog2 "prog2.acu" customer-info.

C$ASYNCRUN tells AcuConnect to allow asynchronous processing. If you use C$ASYNCRUN, then you can check the status of the server application using the companion routine, C$ASYNCPOLL.