summaryrefslogtreecommitdiff
path: root/include/net_multiplayer.h
blob: 0127de805529c8bb44fe9368dd843f47e7ee505a (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

#ifndef NET_MULTIPLAYER_H

#define NET_MULTIPLAYER_H

#include "main.h"
#include "tux.h"
#include "item.h"
#include "buffer.h"
#include "arena.h"
#include "tcp.h"
#include "udp.h"

#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

extern int initNetMuliplayer(int type, char *ip, int port);
extern int getNetTypeGame();
extern void eventNetMultiplayer();
extern void quitNetMultiplayer();

#endif