From 8196872e3b240ef93fc17dd3c05a7d97a8015d88 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 25 Aug 2006 21:20:07 +0000 Subject: Rearranged the network and socket code. Added status messages sent over the network using udp packets. --- server/server_status.h | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'server/server_status.h') diff --git a/server/server_status.h b/server/server_status.h index 82ec8ec..25346ec 100644 --- a/server/server_status.h +++ b/server/server_status.h @@ -3,7 +3,7 @@ * server_status.h * * Fri Apr 29 13:58:26 CEST 2005 - * Copyright 2005 Bent Bisballe + * Copyright 2005 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ @@ -24,30 +24,9 @@ * along with MIaV; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include "config.h" #ifndef __MIAV_SERVER_STATUS_H__ #define __MIAV_SERVER_STATUS_H__ -#include - -// How many steps to do avarage calculation over. -#define BUFFERSIZE 100 - -// Interval in us (microseconds) -#define UPD 60 * 1000 * 1000 // 1 minute - -class ServerStatus { -public: - ServerStatus(); - ~ServerStatus(); - - void checkPoint(); - -private: - long long interval; - unsigned int frametime[BUFFERSIZE]; - struct timeval time; - struct timeval oldtime; -}; +int server_status(int port); #endif/*__MIAV_SERVER_STATUS_H__*/ -- cgit v1.2.3