Important: The information in this document is obsolete and should not be used for new development.
OTCancelUReply
Cancels a request that you have read using theOTRcvURequestfunction.C INTERFACE
OSStatus OTCancelUReply(EndpointRef ref, OTSequence seq);C++ INTERFACE
OSStatus TEndpoint::CancelUReply(OTSequence seq);PARAMETERS
ref- The endpoint reference of the endpoint that has sent the request being canceled.
seq- A long, specifying the transaction ID of the request being cancelled. Specify the same value as that value passed in the
reqparameter to theOTRcvURequestfunction that you used to read this request.
- If you specify 0 for this parameter, Open Transport cancels all outstanding incoming requests for the endpoint. If you specify an invalid sequence number, Open Transport does not do anything.
- function result
- If the function completes successfully, it returns the
kOTNoErrresult; it does not return any other kind of acknowledgment.
DISCUSSION
TheOTCancelUReplyfunction cancels the incoming request whose transaction ID is specified by theseqparameter.When you call the
OTRcvURequestfunction, the endpoint provider allocates memory for internal buffers and assigns a sequence value to identify this transaction. Calling theOTCancelUReplyfunction tells the provider that you are no longer interested in the transaction and that it can free up the memory and the sequence number associated with the cancelled transaction.It is your responsibility to deallocate memory that you have reserved for the address, options, and data buffers associated with the cancelled
OTRcvURequestfunction.Use the
OTCancelUReplyfunction to cancel an incoming request; use theOTCancelURequestfunction to cancel an outgoing request.