| 8431 | |
| 8432 | |
| 8433 | static void clear_queue(rem_port* port) |
| 8434 | { |
| 8435 | /************************************** |
| 8436 | * |
| 8437 | * c l e a r _ q u e u e |
| 8438 | * |
| 8439 | ************************************** |
| 8440 | * |
| 8441 | * Functional description |
| 8442 | * Clear the queue of batched packets - in preparation |
| 8443 | * for waiting for a specific response, or when we are |
| 8444 | * about to reuse an internal request. |
| 8445 | * Return codes: |
| 8446 | * true - no errors. |
| 8447 | * false - Network error occurred, error code in status |
| 8448 | **************************************/ |
| 8449 | |
| 8450 | while (port->port_receive_rmtque) |
| 8451 | { |
| 8452 | receive_queued_packet(port, (USHORT) -1); |
| 8453 | } |
| 8454 | } |
| 8455 | |
| 8456 | |
| 8457 | static void finalize(rem_port* port) |
no test coverage detected