Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 * static char *rcsid_metaserver2_h = 00003 * "$Id: map.h 6761 2007-07-09 06:20:18Z mwedel $"; 00004 */ 00005 00006 /* 00007 CrossFire, A Multiplayer game for X-windows 00008 00009 Copyright (C) 2007 Mark Wedel & Crossfire Development Team 00010 00011 This program is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; either version 2 of the License, or 00014 (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with this program; if not, write to the Free Software 00023 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 00025 The authors can be reached via e-mail at crossfire-devel@real-time.com 00026 */ 00027 00036 #ifndef METASERVER2_H 00037 #define METASERVER2_H 00038 00057 extern pthread_mutex_t ms2_info_mutex; 00058 00059 typedef struct _MetaServer2_UpdateInfo { 00060 int num_players; /* Number of players */ 00061 int in_bytes; /* Number of bytes received */ 00062 int out_bytes; /* Number of bytes sent */ 00063 time_t uptime; /* How long server has been up */ 00064 } MetaServer2_UpdateInfo; 00065 00066 extern MetaServer2_UpdateInfo metaserver2_updateinfo; 00067 00068 #endif /* METASERVER2_H */