OpenDOF Project
void DOFServer_BeginRestart ( DOFServer  self,
uint32  timeout,
DOFServerStartCallback  callback,
void *  context 
)

Causes the Server to start again, if possible.

If the Server is already started, then this call is satisfied immediately. This call should only be used when a successfully started server was terminated but the server is still desired (DOFServer_Stop has not yet been called).

The callback is called to indicate that the server either started successfully or failed. Any listeners added to the server 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 Server to be established before returning control to the caller.
Parameters
selfThe Server. This must not be NULL.
timeoutThe maximum time to wait for the Server to be established.
callbackThe Server completion callback to be called when asynchronous operation finishes.
contextThe context, if any, associated with this connection request.
See Also
DOFServer_AddStateListener
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22