Important: The information in this document is obsolete and should not be used for new development.
dspReset
ThedspResetroutine clears all the data associated with the connection that the remote connection client has not already read and resynchronizes the connection. You use thePBControlfunction to call thedspResetroutine. 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 dspResetfor this routine.--> ccbRefNum Integer The CCB reference number.
Field Description
csCode- The routine selector, always
dspResetfor this routine.ccbRefNum- The connection control block (CCB) reference number that the
dspInitroutine returned.DESCRIPTION
ThedspResetroutine causes ADSP to discard all data in the send queue, all data in transit to the remote connection end, and all data in the remote connection end's receive queue that the client has not yet read. This process is known as a forward reset. ADSP then resynchronizes the connection. You can determine that your connection end has received a forward reset and has discarded all data in the receive queue by checking theeFwdResetflag in theuserFlagsfield of the CCB. For information on the CCB, see "Connections, Connection Ends, and Connection States" beginning on page 5-6.ASSEMBLY-LANGUAGE INFORMATION
To execute thedspResetroutine from assembly language, call the_Controltrap macro with a value ofdspResetin thecsCodefield of the parameter block.RESULT CODES
noErr 0 No error errState -1278 Connection is not open errAborted -1279 Request aborted by dspRemoveordspCloseroutineerrRefNum -1280 Bad connection reference number