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

Function send_full

src/remote/inet.cpp:2410–2440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2408}
2409
2410static int send_full( rem_port* port, PACKET * packet)
2411{
2412/**************************************
2413 *
2414 * s e n d _ f u l l
2415 *
2416 **************************************
2417 *
2418 * Functional description
2419 * Send a packet across a port to another process.
2420 *
2421 **************************************/
2422
2423 if (!xdr_protocol(port->port_send, packet))
2424 return false;
2425
2426#ifdef DEBUG
2427 { // scope
2428 static ULONG op_sent_count = 0;
2429 op_sent_count++;
2430 if (INET_trace & TRACE_operations)
2431 {
2432 fprintf(stdout, "%05u: OP Sent %5u opcode %d\n", inet_debug_timer(),
2433 op_sent_count, packet->p_operation);
2434 fflush(stdout);
2435 }
2436 } // end scope
2437#endif
2438
2439 return REMOTE_deflate(port->port_send, inet_write, packet_send, true);
2440}
2441
2442static int send_partial( rem_port* port, PACKET * packet)
2443{

Callers 2

INET_connectFunction · 0.70
packet_receiveFunction · 0.70

Calls 4

xdr_protocolFunction · 0.85
inet_debug_timerFunction · 0.85
fflushFunction · 0.85
REMOTE_deflateFunction · 0.85

Tested by

no test coverage detected