| 9192 | |
| 9193 | |
| 9194 | static void receive_packet(rem_port* port, PACKET* packet) |
| 9195 | { |
| 9196 | /************************************** |
| 9197 | * |
| 9198 | * r e c e i v e _ p a c k e t |
| 9199 | * |
| 9200 | ************************************** |
| 9201 | * |
| 9202 | * Functional description |
| 9203 | * Clear the queue of any pending receives, then receive the |
| 9204 | * response to a sent request, blocking if necessary until |
| 9205 | * the response is present. |
| 9206 | * |
| 9207 | * Return codes: |
| 9208 | * true - no errors. |
| 9209 | * false - Network error occurred, error code in status |
| 9210 | * |
| 9211 | **************************************/ |
| 9212 | |
| 9213 | // Must clear the wire of any queued receives before fetching |
| 9214 | // the desired packet |
| 9215 | |
| 9216 | clear_queue(port); |
| 9217 | receive_packet_noqueue(port, packet); |
| 9218 | } |
| 9219 | |
| 9220 | |
| 9221 | static void receive_packet_with_callback(rem_port* port, PACKET* packet) |
no test coverage detected