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

Function packet_receive2

src/remote/inet.cpp:2805–2827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2803}
2804
2805static bool packet_receive2(rem_port* port, UCHAR* p, SSHORT bufSize, SSHORT* length)
2806{
2807 *length = 0;
2808
2809 while (true)
2810 {
2811 SSHORT l = bufSize - *length;
2812 if (!packet_receive(port, p + *length, l, &l))
2813 return false;
2814
2815 if (l >= 0)
2816 {
2817 *length += l;
2818 break;
2819 }
2820
2821 *length -= l;
2822 if (!packet_send(port, 0, 0))
2823 return false;
2824 }
2825
2826 return true;
2827}
2828
2829static rem_port* inet_try_connect(PACKET* packet,
2830 Rdb* rdb,

Callers

nothing calls this directly

Calls 2

packet_receiveFunction · 0.85
packet_sendFunction · 0.85

Tested by

no test coverage detected