Freeciv-3.2
Loading...
Searching...
No Matches
connecthand.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__CONNECTHAND_H
14#define FC__CONNECTHAND_H
15
16#include "support.h" /* bool type */
17
18#include "fc_types.h"
19
20struct connection;
21struct conn_list;
25
27 bool granted);
28
30void reject_new_connection(const char *msg, struct connection *pconn);
31
33 struct packet_server_join_req *req);
34
36
37void send_conn_info(struct conn_list *src, struct conn_list *dest);
38void send_conn_info_remove(struct conn_list *src, struct conn_list *dest);
39
41bool connection_attach(struct connection *pconn, struct player *pplayer,
42 bool observing);
44
46 struct player *pplayer);
48
49void connection_close_server(struct connection *pconn, const char *reason);
50
51#endif /* FC__CONNECTHAND_H */
char * incite_cost
Definition comments.c:75
void send_conn_info(struct conn_list *src, struct conn_list *dest)
bool connection_attach(struct connection *pconn, struct player *pplayer, bool observing)
void reject_new_connection(const char *msg, struct connection *pconn)
bool handle_login_request(struct connection *pconn, struct packet_server_join_req *req)
struct player * find_uncontrolled_player(void)
void lost_connection_to_client(struct connection *pconn)
void connection_close_server(struct connection *pconn, const char *reason)
bool connection_delegate_take(struct connection *pconn, struct player *pplayer)
void connection_detach(struct connection *pconn, bool remove_unused_player)
void conn_set_access(struct connection *pconn, enum cmdlevel new_level, bool granted)
Definition connecthand.c:72
bool connection_delegate_restore(struct connection *pconn)
void send_conn_info_remove(struct conn_list *src, struct conn_list *dest)
void establish_new_connection(struct connection *pconn)