Freeciv-3.3
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/* utility */
17#include "support.h" /* bool type */
18
19/* common */
20#include "fc_types.h"
21
22struct connection;
23struct conn_list;
27
29 bool granted);
30
32void reject_new_connection(const char *msg, struct connection *pconn);
33
35 struct packet_server_join_req *req);
36
38
39void send_conn_info(struct conn_list *src, struct conn_list *dest);
40void send_conn_info_remove(struct conn_list *src, struct conn_list *dest);
41
43bool connection_attach(struct connection *pconn, struct player *pplayer,
44 bool observing);
46
48 struct player *pplayer);
50
51void connection_close_server(struct connection *pconn, const char *reason);
52
53#endif /* FC__CONNECTHAND_H */
char * incite_cost
Definition comments.c:76
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)