public ClientObject(TcpClient x, Server y) { server = y; client = x; Id = Guid.NewGuid().ToString(); y.AddConnection(this); }
public Client(TcpClient tcpClient, Server serverObject) { Id = Guid.NewGuid().ToString(); _client = tcpClient; _server = serverObject; serverObject.AddConnection(this); }
public Connection(TcpClient tcpClient, Server serverObject) { client = tcpClient; server = serverObject; requestHandler = new RequestHandler(); BinaryFormatter = new BinaryFormatter(); serverObject.AddConnection(this); }