~and471/ubuntu/maverick/frozen-bubble/fix-599809

« back to all changes in this revision

Viewing changes to server/net.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2006-11-20 21:09:36 UTC
  • mfrom: (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061120210936-ag59f3s17bkit78h
Tags: 2.1.0-1
* New upstream release.
  + Can now enable chain reactions everywhere (closes: #398025).
* High urgency was asked by upstream as 2.0.0 shouldn't remain
  distributed in the long term.
* server/tools.c: a setuid patch was included upstream.
* debian/fb-server.conf: change user to nobody.
* rules: colourblind set is now correctly included.
* control: don't build-depend on imagemagick anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <sys/types.h>
 
21
#include <sys/socket.h>
 
22
#include <stdlib.h>
 
23
#include <unistd.h>
 
24
 
 
25
#include <glib.h>
 
26
 
 
27
#ifndef MSG_NOSIGNAL
 
28
#define MSG_NOSIGNAL 0
 
29
#endif
 
30
 
 
31
extern const int proto_major;
 
32
extern const int proto_minor;
 
33
 
 
34
extern char* current_command;
 
35
extern char* pidfile;
 
36
extern char* user_to_switch;
 
37
extern GList* alert_words;
 
38
 
 
39
extern int amount_talk_flood[256];
 
40
 
 
41
ssize_t send_line_log(int fd, char* dest_msg, char* inco_msg);
 
42
ssize_t send_line_log_push(int fd, char* dest_msg);
 
43
ssize_t send_line_log_push_binary(int fd, char* dest_msg, char* printable_msg);
 
44
ssize_t send_ok(int fd, char* inco_msg);
 
45
 
 
46
void connections_manager();
 
47
void conn_terminated(int fd, char* reason);
 
48
void create_server(int argc, char **argv);
 
49
void register_server();
 
50
void unregister_server();
 
51
void close_server();
 
52
void reread();
 
53
 
 
54
int conns_nb(void);
 
55
void add_prio(int fd);
 
56
 
 
57
#ifdef DEBUG
 
58
void net_debug(void);
 
59
#endif