Important: The information in this document is obsolete and should not be used for new development.
OTCancelURequest
Cancels a request that was made using theOTSndURequest
function.C INTERFACE
OSStatus OTCancelURequest(EndpointRef ref, OTSequence seq);C++ INTERFACE
OSStatus TEndpoint::CancelURequest(OTSequence seq);PARAMETERS
ref
- The endpoint reference of the endpoint that has sent the request being cancelled.
seq
- A 32-bit value specifying the transaction ID of the request you want to cancel. This is the same value as the one you specified for the
sequence
field of thereq
parameter when you called theOTSndURequest
function.
- If you specify 0 for this parameter, Open Transport cancels all outstanding 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
TheOTCancelURequest
function cancels the outgoing request whose transaction ID is specified by theseq
parameter.When you call the
OTSndURequest
function, the provider allocates memory for internal buffers for the transaction. Calling theOTCancelURequest
function tells the endpoint provider that you are no longer interested in the transaction and that it can free up any memory or internal buffers associated with the transaction request identified by theseq
parameter.It is your responsibility to deallocate memory that you have reserved for the address, options, and data buffers associated with the cancelled
OTSndURequest
function.Use the
OTCancelURequest
function to cancel an outgoing request; useOTCancelUReply
to cancel an incoming request.SEE ALSO
Table 4-4 .