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

Method reader_exists

dds/DCPS/StaticDiscovery.cpp:511–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511void
512StaticEndpointManager::reader_exists(const GUID_t& readerid, const GUID_t& writerid)
513{
514 ACE_GUARD(ACE_Thread_Mutex, g, lock_);
515 LocalPublicationMap::const_iterator lp_pos = local_publications_.find(writerid);
516 EndpointRegistry::ReaderMapType::const_iterator reader_pos = registry_.reader_map.find(readerid);
517 if (lp_pos != local_publications_.end() &&
518 reader_pos != registry_.reader_map.end()) {
519 DataWriterCallbacks_rch dwr = lp_pos->second.publication_.lock();
520 if (dwr) {
521 const ReaderAssociation ra =
522 {reader_pos->second.trans_info, TransportLocator(), 0, readerid, reader_pos->second.subscriber_qos, reader_pos->second.qos,
523 "", "", DDS::StringSeq(), DDS::OctetSeq(), {0, 0}};
524 dwr->add_association(ra, true);
525 }
526 }
527}
528
529void
530StaticEndpointManager::reader_does_not_exist(const GUID_t& readerid, const GUID_t& writerid)

Callers 1

receivedMethod · 0.80

Calls 6

StringSeqClass · 0.70
OctetSeqFunction · 0.70
findMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
add_associationMethod · 0.45

Tested by

no test coverage detected