/** * Creates a Topic that can be used to Subscribe to the participant info data * @return a new Topic for the participant info data. */ public Topic CreateParticipantInfoTopic() { Topic infoTopic = new Topic("ops.bit.ParticipantInfoTopic", domain.GetMetaDataMcPort(), "ops.ParticipantInfoData", domain.GetDomainAddress()); infoTopic.SetLocalInterface(domain.GetLocalInterface()); infoTopic.SetTimeToLive(domain.getTimeToLive()); infoTopic.SetDomainID(domainID); infoTopic.SetParticipantID(participantID); infoTopic.SetTransport(Topic.TRANSPORT_MC); return(infoTopic); }
void checkTopicValues(Topic top) { if (top.GetDomainAddress().Equals("")) { top.SetDomainAddress(domainAddress); } if (top.GetLocalInterface().Equals("")) { top.SetLocalInterface(localInterface); } if (top.GetTimeToLive() < 0) { top.SetTimeToLive(timeToLive); } if (top.GetInSocketBufferSize() < 0) { top.SetInSocketBufferSize(inSocketBufferSize); } if (top.GetOutSocketBufferSize() < 0) { top.SetOutSocketBufferSize(outSocketBufferSize); } top.SetOptNonVirt(optNonVirt); }