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 theOTRcvURequest
function.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
req
parameter to theOTRcvURequest
function 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
kOTNoErr
result; it does not return any other kind of acknowledgment.
DISCUSSION
TheOTCancelUReply
function cancels the incoming request whose transaction ID is specified by theseq
parameter.When you call the
OTRcvURequest
function, the endpoint provider allocates memory for internal buffers and assigns a sequence value to identify this transaction. Calling theOTCancelUReply
function 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
OTRcvURequest
function.Use the
OTCancelUReply
function to cancel an incoming request; use theOTCancelURequest
function to cancel an outgoing request.