Important: The information in this document is obsolete and should not be used for new development.
OTSync
Ensures that the endpoint provider and the Open Transport client libraries have the same information about an endpoint's state.C INTERFACE
OTResult OTSync(EndpointRef ref);C++ INTERFACE
OTResult TEndpoint::Sync();PARAMETERS
ref
- The endpoint reference of the endpoint whose state information is being synchronized.
- function result
- See Discussion.
DISCUSSION
The provider's and the client's libraries knowledge about an endpoint's state might get out of sync if the provider and the client libraries occupy different memory spaces. The current run-time environment does not support separate memory spaces; therefore, this function does nothing and is provided so that existing XTI-based applications that make this call do not have to be modified.If the
OTSync
function succeeds, it returns an integer value of 0 or greater that specifies the current state of the endpoint.If the
OTSync
function fails, it returns a negative integer corresponding to a result code. See Appendix C.If the endpoint is in synchronous mode, it returns as soon the operation is complete. If the endpoint is in asynchronous mode and you have installed a notification routine, the
OTSync
function returns the resultkOTNoError
and the provider sends theT_SYNCCOMPLETE
event code to the notifier when the operation completes. Theresult
parameter is either a negative error code or a state code. Thecookie
parameter has no meaning. If a notifier is not installed, it is not possible to determine when theOTSync
function completes. For more information on notifier functions and event codes seeMyNotifierCallback
function and "Event Codes".SEE ALSO
TheOTGetEndpointState
function.