Ejemplo n.º 1
0
    public DRMonitor(string ip, int port, int freq = 60)
    {
        this.freq        = freq;
        connectedAppDict = new Dictionary <string, GameObject>();
        this.port        = port;
        nodeManager      = new DRNodeManager(ip, port);
        Thread monitorThread = new Thread(new ThreadStart(drMonitorLogicLoop));

        monitorThread.Start();
    }
Ejemplo n.º 2
0
 public void destory()
 {
     topicManager = null;
     client.closeSocket();
     isConnected = false;
     okToPublish = false;
     while (thPub != null && thPub.IsAlive)
     {
         thPub.Abort();
         Debug.Log("trying to stop thread");
     }
 }
Ejemplo n.º 3
0
 private void openTopicRegistrationDesk()
 {
     topicManager = new DRNodeManager("127.0.0.1", client.TopicPort);
 }