src/network/index_svr_msg.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *  Wormux is a convivial mass murder game.
00003  *  Copyright (C) 2001-2004 Lawrence Azzoug.
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
00018  ******************************************************************************
00019  * Notify a top server of an opened wormux server
00020  * Obtain information about running games from a top server
00021  *****************************************************************************/
00022 
00023 #ifndef TOP_SERVER_MSG_H
00024 #define TOP_SERVER_MSG_H
00025 
00026 enum IndexServerMsg
00027 {
00028   TS_NO_MSG, // Don't send this
00029 
00030   //********  Messages shared by wormux clients, womux servers, and index servers ********
00031   TS_MSG_VERSION,  // Send this to identify the server
00032   TS_MSG_HOSTING,  // Send this if we are hosting a game
00033   TS_MSG_GET_LIST, // Send this to obtain the list of the current hosting games
00034 
00035   //********  index servers to index servers messages  ***********************************
00036   TS_MSG_WIS_VERSION,     // Send the server version
00037   TS_MSG_JOIN_LEAVE,     // Send this when a wormux server joined or left the index server
00038 
00039   TS_LAST_MSG // Don't send this
00040 };
00041 
00042 const std::string server_list_url = "http://www.wormux.org/server_list";
00043 
00044 #endif
00045 

Generated on Mon Jan 1 13:10:59 2007 for Wormux by  doxygen 1.4.7