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

Method send

src/jrd/jrd.cpp:4250–4287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4248
4249
4250void JRequest::send(CheckStatusWrapper* user_status, int level, unsigned int msg_type,
4251 unsigned int msg_length, const void* msg)
4252{
4253/**************************************
4254 *
4255 * g d s _ $ s e n d
4256 *
4257 **************************************
4258 *
4259 * Functional description
4260 * Get a record from the host program.
4261 *
4262 **************************************/
4263 try
4264 {
4265 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
4266 check_database(tdbb);
4267
4268 Request* request = verify_request_synchronization(getHandle(), level);
4269
4270 try
4271 {
4272 JRD_send(tdbb, request, msg_type, msg_length, msg);
4273 }
4274 catch (const Exception& ex)
4275 {
4276 transliterateException(tdbb, ex, user_status, "JRequest::send");
4277 return;
4278 }
4279 }
4280 catch (const Exception& ex)
4281 {
4282 ex.stuffException(user_status);
4283 return;
4284 }
4285
4286 successful_completion(user_status);
4287}
4288
4289
4290JService* JProvider::attachServiceManager(CheckStatusWrapper* user_status, const char* service_name,

Callers

nothing calls this directly

Calls 6

check_databaseFunction · 0.85
JRD_sendFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected