Ejemplo n.º 1
0
 public ClientObject(TcpClient tcpclient, ServerObject serverobject)
 {
     Id     = Guid.NewGuid().ToString();
     Client = tcpclient;
     server = serverobject;
     server.AddConection(this);
 }
Ejemplo 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);
 }