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

Method notify_subscription_reconnected

dds/DCPS/DataReaderImpl.cpp:2332–2351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2330}
2331
2332void
2333DataReaderImpl::notify_subscription_reconnected(const WriterIdSeq& pubids)
2334{
2335 DBG_ENTRY_LVL("DataReaderImpl","notify_subscription_reconnected",6);
2336
2337 if (!this->is_bit_) {
2338 // Narrow to DDS::DCPS::DataReaderListener. If a DDS::DataReaderListener
2339 // is given to this DataReader then narrow() fails.
2340 DataReaderListener_var the_listener = get_ext_listener();
2341
2342 if (!CORBA::is_nil(the_listener.in())) {
2343 SubscriptionLostStatus status;
2344
2345 // If it's reconnected then the reader should be in id_to_handle
2346 this->lookup_instance_handles(pubids, status.publication_handles);
2347
2348 the_listener->on_subscription_reconnected(this, status);
2349 }
2350 }
2351}
2352
2353void
2354DataReaderImpl::notify_subscription_lost(const DDS::InstanceHandleSeq& handles)

Callers

nothing calls this directly

Calls 3

inMethod · 0.45

Tested by

no test coverage detected