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
OTSyncfunction succeeds, it returns an integer value of 0 or greater that specifies the current state of the endpoint.If the
OTSyncfunction 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
OTSyncfunction returns the resultkOTNoErrorand the provider sends theT_SYNCCOMPLETEevent code to the notifier when the operation completes. Theresultparameter is either a negative error code or a state code. Thecookieparameter has no meaning. If a notifier is not installed, it is not possible to determine when theOTSyncfunction completes. For more information on notifier functions and event codes seeMyNotifierCallbackfunction and "Event Codes".SEE ALSO
TheOTGetEndpointStatefunction.