Beispiel #1
0
        public void SetStreamManager(StreamManager strMan)
        {
            _strManager = strMan;
            _running    = true;
            Thread thr = new Thread(new ThreadStart(MessageDaemon));

            thr.Start();
        }
Beispiel #2
0
 public Mqtt(string connString, string clientID, IPersistence store)
 {
     _store = store;
     qosManager = new QoSManager(_store);
     manager = new StreamManager(connString, qosManager);
     qosManager.MessageReceived += new QoSManager.MessageReceivedDelegate(qosManager_MessageReceived);
     _clientID = clientID;
 }
Beispiel #3
0
 public Mqtt(string connString, string clientID, string username, string password, IPersistence store)
 {
     _store = store;
     qosManager = new QoSManager(_store);
     manager = new StreamManager(connString, qosManager);
     qosManager.MessageReceived += new QoSManager.MessageReceivedDelegate(qosManager_MessageReceived);
     _clientID = clientID;
     _username = username;
     _password = password;
 }
Beispiel #4
0
 public void SetStreamManager(StreamManager strMan)
 {
     _strManager = strMan;
     _running = true;
     Thread thr = new Thread(new ThreadStart(MessageDaemon));
     thr.Start();
 }