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 5 - AppleTalk Data Stream Protocol (ADSP) / ADSP Reference
Routines / Establishing and Terminating an ADSP Connection Listener


dspCLRemove

The dspCLRemove routine closes a connection end used as a connection listener. You use the PBControl function to call the dspCLRemove routine. See "Routines" on page 5-43 for a description of the PBControl function.

-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe function result.
-->ioCRefNumIntegerThe driver reference number.
-->csCodeIntegerAlways dspCLRemove for this function.
-->ccbRefNumIntegerThe CCB reference number.
-->abortByteA value specifying to abort outstanding
requests if not 0.

Field Description
csCode
The routine selector, always dspCLRemove for this routine.
ccbRefNum
The connection control block (CCB) reference number that the dspCLInit routine returned.
abort
A value directing ADSP whether or not to cancel any outstanding listen and deny requests. If this value is nonzero, ADSP cancels outstanding dspCLListen and dspCLDeny requests. If this value is 0, ADSP does not cancel these requests.
DESCRIPTION
The dspCLRemove routine closes a connection end used as a connection listener. After you call the dspCLRemove routine, you can release the memory that you allocated for the CCB if you do not intend to reopen the connection end.

ASSEMBLY-LANGUAGE INFORMATION
To execute the dspCLRemove routine from assembly language, call the _Control trap macro with a value of dspCLRemove in the csCode field of the parameter block.

RESULT CODES
noErr0No error
errRefNum-1280Bad connection reference number

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996