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

Function check_request

src/remote/server/server.cpp:2797–2816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2795
2796
2797static bool check_request(Rrq* request, USHORT incarnation, USHORT msg_number)
2798{
2799/**************************************
2800 *
2801 * c h e c k _ r e q u e s t
2802 *
2803 **************************************
2804 *
2805 * Functional description
2806 * Check to see if a request is ready to send us a particular
2807 * message. If so, return true, otherwise false.
2808 *
2809 **************************************/
2810 USHORT n;
2811
2812 if (!get_next_msg_no(request, incarnation, &n))
2813 return false;
2814
2815 return msg_number == n;
2816}
2817
2818
2819static USHORT check_statement_type( Rsr* statement)

Callers 1

receive_msgMethod · 0.85

Calls 1

get_next_msg_noFunction · 0.85

Tested by

no test coverage detected