OpenDOF Project
boolean DOFConnection_Reconnect ( DOFConnection  self,
uint32  timeout,
DOFException pException 
)

Cause the Connection to become Connected again, if possible.

If the Connection is already connected, then this call is satisfied immediately. This call should only be used when a successfully established connection was terminated but the connection is still desired (DOFConnection_Disconnect has not yet been called).

Note
This call is synchronous, and waits for the Connection to be established (or fail) before returning control to the caller.
Parameters
selfThe Connection. This must not be NULL.
timeoutThe maximum time to wait for the connection to be established (in milliseconds).
[out]pExceptionAn Exception. If pException is NULL, no exception is reported. Otherwise, the output is either a DOFException, or NULL to indicate no exception occurred. DOFException_Destroy must be called to destroy the returned DOFException, if any.
Return values
TRUEIf the connection reconnected.
Exceptions
FALSEIf the connection failed to reconnect. If an exception was used it will give more detail of failure.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22