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

Function receive_queued_packet

src/remote/client/interface.cpp:9402–9429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9400
9401
9402static void receive_queued_packet(rem_port* port, USHORT id)
9403{
9404/**************************************
9405 *
9406 * r e c e i v e _ q u e u e d_ p a c k e t
9407 *
9408 **************************************
9409 *
9410 * Functional description
9411 * We're marked as having pending receives on the
9412 * wire. Grab the first pending receive and return.
9413 *
9414 **************************************/
9415 // Trivial case, nothing pending on the wire
9416
9417 if (!port->port_receive_rmtque)
9418 {
9419 return;
9420 }
9421
9422 // Grab first queue entry
9423
9424 rmtque* que_inst = port->port_receive_rmtque;
9425
9426 // Receive the data
9427
9428 (que_inst->rmtque_function) (port, que_inst, id);
9429}
9430
9431
9432static void enqueue_receive(rem_port* port,

Callers 4

fetchMethod · 0.85
receiveMethod · 0.85
clear_stmt_queFunction · 0.85
clear_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected