Exemplo n.º 1
0
        public Publisher(Topic topic)
        {
            this.topic = topic;
            this.bytes = new byte[topic.GetSampleMaxSize()];

            this.participant = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
            //this.inProcessTransport = participant.GetInProcessTransport();
            Init();
        }
Exemplo n.º 2
0
        public Publisher(Topic topic)
        {
            this.topic = topic;
            this.bytes = new byte[topic.GetSampleMaxSize()];

            this.participant = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
            this.inProcessTransport = participant.GetInProcessTransport();
            Init();
        }
Exemplo n.º 3
0
 public Subscriber(Topic t)
 {
     if (t == null)
     {
         throw new OPSInvalidTopicException("Not possible to create Subscriber with null Topic!");
     }
     this.topic = t;
     this.participant = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
     deadlineNotifier = DeadlineNotifier.GetInstance();
     inProcessTransport = participant.GetInProcessTransport();
 }
Exemplo n.º 4
0
 public Subscriber(Topic t)
 {
     if (t == null)
     {
         throw new OPSInvalidTopicException("Not possible to create Subscriber with null Topic!");
     }
     this.topic         = t;
     this.participant   = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
     deadlineNotifier   = DeadlineNotifier.GetInstance();
     inProcessTransport = participant.GetInProcessTransport();
 }