Drains the asynchronous transmit acknowledgements and checks for any waiting received packets.
#include txcpi.h
CPI_ERR_TYPE cpia_intr ( TX_HANDLE handle)
Argument |
Description |
handle |
TX_HANDLE that has had an I/O event. |
Return value |
Description |
CPI_SUCCESS |
Asynchronous processing completed successfully. |
CPI_ERROR |
Call cpi_get_last_error to obtain the error code. |
CPI_INVALID_MODE |
Handle is not open for asynchronous I/O. |
Call cpia_intr when an I/O event is detected. Detecting such events is operating system-specific (WaitForMultipleObjects for Windows or poll for UNIX).
Note: Asynchronous transmit complete messages are processed before received messages.