The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
multiplayer_error_codes.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2016 by Thomas Baumhauer <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 /**
16  * @file
17  * Define the errors the server may send during the login procedure
18  */
19 
20 #ifndef MULTIPLAYER_ERROR_CODES_HPP_INCLUDED
21 #define MULTIPLAYER_ERROR_CODES_HPP_INCLUDED
22 
23 #define MP_MUST_LOGIN "100"
24 #define MP_NAME_TAKEN_ERROR "101"
25 #define MP_INVALID_CHARS_IN_NAME_ERROR "102"
26 #define MP_NAME_TOO_LONG_ERROR "103"
27 #define MP_NAME_RESERVED_ERROR "104"
28 #define MP_NAME_UNREGISTERED_ERROR "105"
29 #define MP_NAME_INACTIVE_WARNING "106"
30 
31 #define MP_PASSWORD_REQUEST "200"
32 #define MP_PASSWORD_REQUEST_FOR_LOGGED_IN_NAME "201"
33 #define MP_NO_SEED_ERROR "202"
34 #define MP_INCORRECT_PASSWORD_ERROR "203"
35 #define MP_TOO_MANY_ATTEMPTS_ERROR "204"
36 
37 #endif // MULTIPLAYER_ERROR_CODES_HPP_INCLUDES
38 
39 
40