MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / callback

Function callback

tests/FACE/GetConnectionParameters/Subscriber/Subscriber.cpp:17–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15bool callback_unregistered = false;
16
17void callback(FACE::TRANSACTION_ID_TYPE,
18 Messenger::Message& msg,
19 FACE::MESSAGE_TYPE_GUID message_type_id,
20 FACE::MESSAGE_SIZE_TYPE message_size,
21 const FACE::WAITSET_TYPE,
22 FACE::RETURN_CODE_TYPE& return_code)
23{
24 ++callback_count;
25 expected = msg.count + 1;
26 ACE_DEBUG((LM_INFO, "In callback() (the %d time): %C\t%d\t"
27 "message_type_id: %Ld\tmessage_size: %d\n",
28 callback_count, msg.text.in(), msg.count,
29 message_type_id, message_size));
30 callbackHappened = true;
31 if (callback_count % 10 == 0) {
32 ACE_DEBUG((LM_INFO, "Subscriber: about to Unregister_Callback()\n"));
33 FACE::TS::Unregister_Callback(connId, return_code);
34 if (return_code != FACE::RC_NO_ERROR) return;
35 callback_unregistered = true;
36 }
37 return_code = FACE::RC_NO_ERROR;
38}
39
40int ACE_TMAIN(int, ACE_TCHAR*[])
41{

Callers

nothing calls this directly

Calls 2

Unregister_CallbackFunction · 0.85
inMethod · 0.45

Tested by

no test coverage detected