#ifndef _STATS_H
#define _STATS_H 1

#include "thread.h"
#include <string>

// A thread that regularly writes out statistics, ie. a list of all connected clients
// with some information about each.

class StatsThread : public Thread {
public:
	StatsThread(const std::string &stats_file, int stats_interval);

private:
	virtual void do_work();

	std::string stats_file;
	int stats_interval;
};
	
#endif  // !defined(_STATS_H)
