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

Function info

src/remote/client/interface.cpp:8698–8745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8696
8697
8698static void info(CheckStatusWrapper* status,
8699 Rdb* rdb,
8700 P_OP operation,
8701 USHORT object,
8702 USHORT incarnation,
8703 USHORT item_length,
8704 const UCHAR* items,
8705 USHORT recv_item_length,
8706 const UCHAR* recv_items,
8707 ULONG buffer_length,
8708 UCHAR* buffer)
8709{
8710/**************************************
8711 *
8712 * i n f o
8713 *
8714 **************************************
8715 *
8716 * Functional description
8717 * Solicit and receive information.
8718 *
8719 **************************************/
8720
8721 // Build the primary packet to get the operation started.
8722
8723 PACKET* packet = &rdb->rdb_packet;
8724 packet->p_operation = operation;
8725 P_INFO* information = &packet->p_info;
8726 information->p_info_object = object;
8727 information->p_info_incarnation = incarnation;
8728 information->p_info_items.cstr_length = item_length;
8729 information->p_info_items.cstr_address = items;
8730 if (operation == op_service_info)
8731 {
8732 information->p_info_recv_items.cstr_length = recv_item_length;
8733 information->p_info_recv_items.cstr_address = recv_items;
8734 }
8735 information->p_info_buffer_length = buffer_length;
8736
8737 send_packet(rdb->rdb_port, packet);
8738
8739 // Set up for the response packet.
8740
8741 P_RESP* response = &packet->p_resp;
8742 UsePreallocatedBuffer temp(response->p_resp_data, buffer_length, buffer);
8743
8744 receive_response(status, rdb, packet);
8745}
8746
8747static bool useLegacyAuth(const char* nm, int protocol, ClumpletWriter& dpb)
8748{

Callers 3

getInfoMethod · 0.85
setServerInfoMethod · 0.85
queryMethod · 0.85

Calls 2

send_packetFunction · 0.85
receive_responseFunction · 0.85

Tested by

no test coverage detected