예제 #1
0
파일: Participant.cs 프로젝트: ghost66/ops
        /**
         * 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);
        }
예제 #2
0
파일: Domain.cs 프로젝트: ghost66/ops
 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);
 }