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

Method receive

src/jrd/jrd.cpp:3911–3947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3909
3910
3911void JRequest::receive(CheckStatusWrapper* user_status, int level, unsigned int msg_type,
3912 unsigned int msg_length, void* msg)
3913{
3914/**************************************
3915 *
3916 * g d s _ $ r e c e i v e
3917 *
3918 **************************************
3919 *
3920 * Functional description
3921 * Send a record to the host program.
3922 **************************************/
3923 try
3924 {
3925 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
3926 check_database(tdbb);
3927
3928 Request* request = verify_request_synchronization(getHandle(), level);
3929
3930 try
3931 {
3932 JRD_receive(tdbb, request, msg_type, msg_length, msg);
3933 }
3934 catch (const Exception& ex)
3935 {
3936 transliterateException(tdbb, ex, user_status, "JRequest::receive");
3937 return;
3938 }
3939 }
3940 catch (const Exception& ex)
3941 {
3942 ex.stuffException(user_status);
3943 return;
3944 }
3945
3946 successful_completion(user_status);
3947}
3948
3949
3950JTransaction* JAttachment::reconnectTransaction(CheckStatusWrapper* user_status, unsigned int length,

Callers

nothing calls this directly

Calls 6

check_databaseFunction · 0.85
JRD_receiveFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected