| 1 | /******************************************************************************* |
| 2 | * |
| 3 | * Copyright (c) 2004 Guillaume Cottenceau |
| 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 version 2, as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | * |
| 18 | ******************************************************************************/ |
| 19 | |
| 20 | #include <stdlib.h> |
| 21 | #include <stdarg.h> |
| 22 | |
| 23 | void player_connects(int fd); |
| 24 | void player_disconnects(int fd); |
| 25 | |
| 26 | void calculate_list_games(void); |
| 27 | |
| 28 | void player_part_game(int fd); |
| 29 | void player_part_game_(int fd, char* reason); |
| 30 | |
| 31 | int process_msg(int fd, char* msg); |
| 32 | |
| 33 | ssize_t get_reset_amount_transmitted(void); |
| 34 | void process_msg_prio(int fd, char* msg, ssize_t len); |
| 35 | |
| 36 | extern char* nick[256]; |
| 37 | extern char* geoloc[256]; |
| 38 | extern char* IP[256]; |
| 39 | extern int remote_proto_minor[256]; |
| 40 | extern int admin_authorized[256]; |