PRelTCB
PRelTCB Dequeue a PSendRequest call
#include <AppleTalk.h> AppleTalk Manager
OSErr PRelTCB( thePBptr, async);
ATPPBPtr thePBptr; pointer to an ATPParamBlock structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
PRelTCB de queues the specified PSendRequest call and returns the result
code reqAborted for the aborted call. The transaction ID can be obtained from
the reqTID field of the PSendRequest call; see PSendRequest for details.
thePBptr iis a pointer to an ATPParamBlock structure.
Out-In Name Type Size Offset Description
Æ csCode short 2 26 always relTCB
Æ addrBlock AddrBlock 4 30 destination of request
Æ transID short 2 48 transaction ID of request
async is a Boolean value. Use FALSE for normal ( synchronous) operation
or TRUE to enqueue the request and resume control immediately. See
Async I/O.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
cbNotFound (-1102) ATP control block not found
noDataArea (-1104) Too many outstanding ATP calls

Notes: To send a request to another socket and get a response, call
PSendRequest. The call terminates when either an entire response is
received or a specified retry timeout interval elapses. To open a socket for
the purpose of responding to requests, call POpenATPSkt. Then call
PGetRequest to receive a request; when a request is received, the call is
completed. After receiving and servicing a request, call PSendResponse
to return response information. If you cannot or do not want to send the
entire response all at once, make a PSendResponse call to send some of
the response, and then call PAddResponse later to send the remainder of
the response. To close a socket opened for the purpose of sending responses,
call PCloseATPSkt.