Stopping the capture

Updated: April 19, 2023

If your application wishes to stop capturing, it can simply stop reading data and let the subchannel overrun as described above, but there's a better way.

If you want your application to stop capturing immediately and delete any unread data from the hardware buffer, call one the drop functions:

If you want your application to stop capturing immediately without discarding the buffered data so the client can read out the remaining data, call one the drain functions: