public Patient(TCPServer serv)
        {
            _serv = serv;
              _serv.DataManager += new DataManager(onDataReceived);

              data.Add("Mass", 60.0);
              data.Add("Height", 160.0);// cm

              EsomaSharedDocuments.IndivoInitialization _indivoInit;

              bool indivo_init=false;

              do{
            if(serv.IsClientConnected("INDIVO")){
              _indivoInit = new IndivoInitialization("rpoole","rpoole-dope75");
              Console.WriteLine("INITIALIZE INDIVO:" +_indivoInit.ToString());
              serv.SendToClient("INITIALIZE|"+_indivoInit.ToString()+"|","INDIVO");
              indivo_init=true;
            } else System.Threading.Thread.Sleep(1000);
              } while((indivo_init == false));
        }
示例#2
0
 public Zigfu(TCPServer serv)
     : base(serv)
 {
     client = "UNITY";
 }
示例#3
0
 public Indivo(TCPServer serv)
     : base(serv)
 {
     client = "INDIVO";
 }
 protected TCPDevice(TCPServer serv)
 {
     serv.DataManager += new DataManager(onDataReceived);
       _serv = serv;
 }
 public void attachTCPServer(TCPServer serv)
 {
     this.serv = serv;
 }
 protected TCPClient(TCPServer serv)
 {
     if (serv != null)
     this.serv = serv;
 }