You are here: Part 2: Core Concepts > Working with DDS Domains > DomainParticipantFactory > Looking Up DomainParticipants

Looking Up DomainParticipants

The DomainParticipantFactory has these useful operations for retrieving its DomainParticipants:

	DDS_ReturnCode_t 
	get_participants (DDSDomainParticipantSeq & participants)
	DDSDomainParticipant * 
	lookup_participant (DDS_DomainId_t domainId)
	DDSDomainParticipant * 
	lookup_participant_by_name(const char * participant_name)

Note: in the Modern C++ API these operations are freestanding functions rti::domain::find_participants(), dds::domain::find(), and rti::domain::find_participant_by_name() respectively.

© 2016 RTI