public ClientObject(TcpClient tcpclient, ServerObject serverobject)
 {
     Id     = Guid.NewGuid().ToString();
     Client = tcpclient;
     server = serverobject;
     server.AddConection(this);
 }
Esempio n. 2
0
 public ClientObject(TcpClient clientObj, ServerObject serverObj)
 {
     active = true;
     tcp    = clientObj;
     stream = clientObj.GetStream();
     server = serverObj;
     id     = Guid.NewGuid().ToString();
     ServerObject.AddConection(this);
 }