ValidateConnection interface method

The ValidateConnection method is called by the Resource Manager on an idle connection to determine whether a connection is still valid. It is invoked when the period specified in the configuration file expires. The method should ping the connection to determine whether it is still valid, using whatever mechanism the resource supports to do this.

MPIRC ValidateConnection (HMPIADAPT  
hAdapter,HCONNECTION  hConnection)

Inputs

hAdapter
Adapter handle
hConnection
Connection handle

Outputs

None

Returns

MPIRC_SUCCESS
Connection is good.
MPIRC_BAD_CONNECTION
Connection is no longer good.

This method is optional. If not provided, the connection is assumed to be invalid when its expiration timeout occurs. This timeout is currently defined in the dtx.ini configuration file.