Freeciv-3.3: /fast/freeciv/nightly/main/server/connecthand.h Source File

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;
24struct packet_authentication_reply;
25struct packet_login_request;
26struct packet_server_join_req;
27
28void conn_set_access(struct connection *pconn, enum cmdlevel new_level,
29 bool granted);
30
31void establish_new_connection(struct connection *pconn);
32void reject_new_connection(const char *msg, struct connection *pconn);
33
34bool handle_login_request(struct connection *pconn,
35 struct packet_server_join_req *req);
36
37void lost_connection_to_client(struct connection *pconn);
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
42struct player *find_uncontrolled_player(void);
43bool connection_attach(struct connection *pconn, struct player *pplayer,
44 bool observing);
45void connection_detach(struct connection *pconn, bool remove_unused_player);
46
47bool connection_delegate_take(struct connection *pconn,
48 struct player *pplayer);
49bool connection_delegate_restore(struct connection *pconn);
50
51void connection_close_server(struct connection *pconn, const char *reason);
52
53#endif /* FC__CONNECTHAND_H */
incite_cost
char * incite_cost
Definition comments.c:74
send_conn_info
void send_conn_info(struct conn_list *src, struct conn_list *dest)
Definition connecthand.c:601
connection_attach
bool connection_attach(struct connection *pconn, struct player *pplayer, bool observing)
Definition connecthand.c:793
reject_new_connection
void reject_new_connection(const char *msg, struct connection *pconn)
Definition connecthand.c:375
handle_login_request
bool handle_login_request(struct connection *pconn, struct packet_server_join_req *req)
Definition connecthand.c:396
find_uncontrolled_player
struct player * find_uncontrolled_player(void)
Definition connecthand.c:618
lost_connection_to_client
void lost_connection_to_client(struct connection *pconn)
Definition connecthand.c:530
connection_close_server
void connection_close_server(struct connection *pconn, const char *reason)
Definition connecthand.c:1007
connection_delegate_take
bool connection_delegate_take(struct connection *pconn, struct player *pplayer)
Definition connecthand.c:884
connection_detach
void connection_detach(struct connection *pconn, bool remove_unused_player)
Definition connecthand.c:809
conn_set_access
void conn_set_access(struct connection *pconn, enum cmdlevel new_level, bool granted)
Definition connecthand.c:72
connection_delegate_restore
bool connection_delegate_restore(struct connection *pconn)
Definition connecthand.c:945
send_conn_info_remove
void send_conn_info_remove(struct conn_list *src, struct conn_list *dest)
Definition connecthand.c:610
establish_new_connection
void establish_new_connection(struct connection *pconn)
Definition connecthand.c:130
fc_types.h
connection
Definition connection.h:136
packet_authentication_reply
Definition packets_gen.h:66
packet_server_join_req
Definition packets_gen.h:44
player
Definition player.h:249
support.h