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)); }
public Zigfu(TCPServer serv) : base(serv) { client = "UNITY"; }
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; }