예제 #1
0
        // Communication Subsystem constructor

        public CommSubsystem(ConversationFactory factory, int minPort, int maxPort)
        {
            _conversationFactory = factory;
            _conversationFactory.ManagingSubsystem = this;

            _minPort = minPort;
            _maxPort = maxPort;

            stillRunning  = true;
            Conversations = new ConversationDictionary();
        }
예제 #2
0
 protected virtual void StartCommSubsystem(ConversationFactory conversationFactory, int minPort, int maxPort, int TCPPort = -1)
 {
     MyCommSubsystem         = new CommSubsystem(conversationFactory, minPort, maxPort);
     MyCommSubsystem.TCPPort = TCPPort;
     MyCommSubsystem.Initialize();
 }