MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / receive_packet

Function receive_packet

src/remote/client/interface.cpp:9194–9218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9192
9193
9194static 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
9221static void receive_packet_with_callback(rem_port* port, PACKET* packet)

Callers 7

sendDeferredPacketMethod · 0.85
executeMethod · 0.85
fetchMethod · 0.85
getSliceMethod · 0.85
transactRequestMethod · 0.85
authReceiveResponseFunction · 0.85
receive_responseFunction · 0.85

Calls 2

clear_queueFunction · 0.85
receive_packet_noqueueFunction · 0.85

Tested by

no test coverage detected