Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking /
Chapter 6 - AppleTalk Transaction Protocol (ATP) / ATP Reference
Routines / Opening and Closing an ATP Socket


PCloseATPSkt

The PCloseATPSkt function closes a socket that was opened to receive ATP requests or to send requests over a specific socket.

FUNCTION PCloseATPSkt (thePBPtr: ATPPBPtr; async: Boolean): OSErr;
thePBPtr
A pointer to an ATP parameter block.
async
A Boolean that indicates whether the function should be executed asynchronously or synchronously. Specify TRUE for asynchronous execution.
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe function result.
-->csCodeIntegerAlways closeATPSkt for this function.
-->atpSocketByteThe socket number.

Field Description
atpSocket
The number of the socket to be closed.
DESCRIPTION
The PCloseATPSkt function closes the socket that you opened to receive ATP requests or to send them over a specific socket.

ASSEMBLY-LANGUAGE INFORMATION
To execute the PCloseATPSkt function from assembly language, call the _Control trap macro with a value of closeATPSkt in the csCode field of the parameter block. To execute this function from assembly language, you must also specify the .ATP driver reference number.

RESULT CODES
noErr0No error
noDataArea-1104Too many outstanding ATP calls

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996