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

Function packet_print

src/remote/inet.cpp:2928–2947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2926
2927#ifdef DEBUG
2928static void packet_print(const TEXT* string, const UCHAR* packet, int length, ULONG counter)
2929{
2930/**************************************
2931 *
2932 * p a c k e t _ p r i n t
2933 *
2934 **************************************
2935 *
2936 * Functional description
2937 * Print a summary of packet.
2938 *
2939 **************************************/
2940 int sum = 0;
2941 for (int l = length; l > 0; --l)
2942 sum += *packet++;
2943
2944 fprintf(stdout, "%05u: PKT %s\t(%u): length = %4d, checksum = %d\n",
2945 inet_debug_timer(), string, counter, length, sum);
2946 fflush(stdout);
2947}
2948#endif
2949
2950static bool packet_receive(rem_port* port, UCHAR* buffer, SSHORT buffer_length, SSHORT* length)

Callers 2

packet_receiveFunction · 0.85
inet.cppFile · 0.85

Calls 2

inet_debug_timerFunction · 0.85
fflushFunction · 0.85

Tested by

no test coverage detected