Important: The information in this document is obsolete and should not be used for new development.
dspCLDeny
ThedspCLDenyroutine denies a connection request from a remote connection end. You use thePBControlfunction to call thedspCLDenyroutine. See "Routines" on page 5-43 for a description of thePBControlfunction.
.
--> ioCompletion ProcPtr A pointer to a completion routine. <-- ioResult OsErr The function result. --> ioCRefNum Integer The driver reference number. --> csCode Integer Always dspCLDenyfor this function.--> ccbRefNum Integer The CCB reference number. --> remoteCID Integer The ID of the remote connection end. --> remoteAddress AddrBlock The remote internet address.
Field Description
csCode- The routine selector, always
dspCLDenyfor this routine.ccbRefNum- The CCB reference number for the connection listener that received the request. This is the CBB number that the
dspCLInitroutine returned for the connection listener when you established a connection listener.remoteCID- The ID of the remote connection end. The
dspCLListenroutine returns this value.remoteAddress- The internet address of the remote connection end. The
dspCLListenroutine returns this value.DESCRIPTION
A connection server uses thedspCLDenyroutine to inform a remote connection end that its request to open a connection cannot be honored. If you want your connection listener to continue to listen for further connection requests, you must call thedspCLListenrequest again after you calldspCLDeny.ASSEMBLY-LANGUAGE INFORMATION
To execute thedspCLDenyroutine from assembly language, call the_Controltrap macro with a value ofdspCLDenyin thecsCodefield of the parameter block.RESULT CODES
noErr 0 No error errState -1278 Not a connection listener errAborted -1279 Request aborted by the dspRemoveroutineerrRefNum -1280 Bad connection reference number