Hope this helps...
-----------
From page 1 of GED-145 Application Gateway:
Connections are initiated by the router. It is the responsibility of the customer to have an application listening to a socket on the target machine, and configure the name and port number to be used to connect to it in the ICR database. Once the connection is made, the host will receive QUERY_REQ requests whenever requested by a script, and periodic heartbeat requests to verify that the connection is still alive.
Disconnects can be initiated from either the router or the host machine. If the host machine initiates a disconnect, the router will immediately attempt to reconnect. That request, however, can be refused.
Requests from the router are issued asynchronously. This means the router will not wait for a response from a request before issuing the next one. No limit is placed on the number of requests that can be in the pipeline. The host is not required to answer the requests in the same order they were issued.
-----------
Regards,
Corey.