int FlushComm(nCid,nQueue)
This function flushes all characters from the transmit or receive queue of the communication device specified by the nCid parameter. The nQueue parameter specifies which queue is to be flushed.
Parameter | Type/Description |
nCid | int Specifies the communication device to be flushed. The OpenComm function returns this value. | |
nQueue | int Specifies the queue to be flushed. If nQueue is zero, the transmit queue is flushed. If it is 1, the receive queue is flushed. |
The return value specifies the result of the function. It is zero if it is successful. It is negative if nCid is not a valid device, or if nQueue is not a valid queue.