Intermec 5055 Reference Guide
im_cancel_rx_buffer
5-4
im_cancel_rx_buffer
Purpose:
This function clears the receive buffer of the designated communications port.
Syntax:
#include "im5055.h"
IM_STATUS im_cancel_rx_buffer
(IM_COM_PORT port_id);
IM_STATUS im_cancel_rx_buffer
(IM_COM_PORT port_id);
IN Parameters:
The port_id parameter identifies the communications port as follows:
IM_COM1
COM1.
IM_COM2
COM2.
IM_NET
Netwrite.
OUT Parameters:
None.
Return Value:
This function returns one of the standard status codes defined in Appendix A, “Status
Codes.”
Codes.”
If there is no input pending to receive, this function returns 4602H (no client).
Notes:
You must install a protocol handler to use this function.