OpenDOF Project
void DOFConnection_BeginReconnect ( DOFConnection  self,
uint32  timeout,
DOFConnectionConnectCallback  callback,
void *  context 
)

Cause the Connection to start connecting 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).

The callback is called to indicate that the connection either connected successfully or failed. Any state listeners added to the connection will be notified if this causes the state to change, but are otherwise unrelated to the callback specified here.

Note
This call is asynchronous, and does not wait for the Connection to be established 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.
callbackThe Connection completion callback to be called when asynchronous operation finishes. If NULL, no callback will be called, regardless of whether the connection succeeds or fails.
contextThe context, if any, associated with this connection request.
See Also
DOFConnection_AddStateListener
core-c-dof-oal Version 7.1.5 Build 0
2017-01-25