blob: b7676c576ca0e107de3b5f3acd505e554a283e62 (
plain)
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
|
#ifndef NET_MULTIPLAYER_H
#define NET_MULTIPLAYER_H
#include "main.h"
#include "tux.h"
#include "item.h"
#include "arena.h"
#define PROTO_UDPv4 0
#define PROTO_UDPv6 1
#define NET_GAME_TYPE_NONE 0
#define NET_GAME_TYPE_SERVER 1
#define NET_GAME_TYPE_CLIENT 2
#define NET_STATUS_OK 0
#define NET_STATUS_ZOMBIE 1
#define NET_PROTOCOL_TYPE_TCP 0
#define NET_PROTOCOL_TYPE_UDP 1
#define LIMIT_BUFFER 10240
#define NET_MASTER_SERVER_DOMAIN "ms.tuxanci.org"
#define NET_MASTER_SERVER "193.85.244.165"
#define NET_MASTER_PORT 2200
#ifdef PUBLIC_SERVER
extern int initNetMuliplayerForGameServer(char *ip4, int port4, char *ip6, int port6);
#endif
extern int initNetMuliplayer(int type, char *ip, int port, int proto);
extern int getNetTypeGame();
extern void eventNetMultiplayer();
extern void quitNetMultiplayer();
#endif
|