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

Function xdr_trrq_message

src/remote/protocol.cpp:2244–2271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2242
2243
2244static bool_t xdr_trrq_message( RemoteXdr* xdrs, USHORT msg_type)
2245{
2246/**************************************
2247 *
2248 * x d r _ t r r q _ m e s s a g e
2249 *
2250 **************************************
2251 *
2252 * Functional description
2253 * Map a formatted transact request message.
2254 *
2255 **************************************/
2256 if (xdrs->x_op == XDR_FREE)
2257 return TRUE;
2258
2259 rem_port* port = xdrs->x_public;
2260 Rpr* procedure = port->port_rpr;
2261
2262 // normally that never happens
2263 fb_assert(procedure);
2264 if (!procedure)
2265 return false;
2266
2267 if (msg_type == 1)
2268 return xdr_message(xdrs, procedure->rpr_out_msg, procedure->rpr_out_format);
2269
2270 return xdr_message(xdrs, procedure->rpr_in_msg, procedure->rpr_in_format);
2271}
2272
2273
2274static void reset_statement( RemoteXdr* xdrs, SSHORT statement_id)

Callers 1

xdr_protocolFunction · 0.85

Calls 1

xdr_messageFunction · 0.85

Tested by

no test coverage detected