File: meta.h

package info (click to toggle)
freeciv 1.9.0-2.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 11,004 kB
  • ctags: 6,284
  • sloc: ansic: 65,037; makefile: 634; sh: 418; sed: 93
file content (42 lines) | stat: -rw-r--r-- 1,309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/********************************************************************** 
 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
***********************************************************************/
#ifndef FC__META_H
#define FC__META_H

/*
 * Definitions for UDP.
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "version.h"

#define	METASERVER_PORT	12245
#define	DEFAULT_META_SERVER_ADDR	"meta.freeciv.org"
#define METASERVER_UPDATE_INTERVAL 3*60
#if IS_BETA_VERSION
#  define DEFAULT_META_SERVER_INFO_STRING "unstable pre-1.9: beware"
#else
#  define DEFAULT_META_SERVER_INFO_STRING "(default)"
#endif

/* Returns true if able to send */
int send_to_metaserver(char *desc, char *info);
void server_close_udp(void);
void server_open_udp(void);

#define PACKET_UDP_PCKT 2

#endif /* FC__META_H */