-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Server.h
50 lines (43 loc) · 1.48 KB
/
Server.h
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
43
44
45
46
47
48
49
50
// Copyright DarkNeutrino 2021
#ifndef SERVER_H
#define SERVER_H
#include "Protocol.h"
#include "Util/Enums.h"
#include "Util/Line.h"
#include "Util/Queue.h"
#include "Util/Types.h"
#include <enet/enet.h>
#include <pthread.h>
#include <bits/pthreadtypes.h>
#include "../Extern/libmapvxl/libmapvxl.h"
#ifndef DEFAULT_SERVER_PORT
#define DEFAULT_SERVER_PORT 32887
#endif
extern pthread_mutex_t serverLock;
Server* getServer();
void StartServer(uint16 port,
uint32 connections,
uint32 channels,
uint32 inBandwidth,
uint32 outBandwidth,
uint8 master,
stringNode* mapList,
uint8 mapCount,
stringNode* welcomeMessageList,
uint8 welcomeMessageListLen,
stringNode* periodicMessageList,
uint8 periodicMessageListLen,
uint8* periodicDelays,
const char* managerPasswd,
const char* adminPasswd,
const char* modPasswd,
const char* guardPasswd,
const char* trustedPasswd,
const char* serverName,
const char* team1Name,
const char* team2Name,
uint8* team1Color,
uint8* team2Color,
uint8 gamemode);
void ServerReset(Server* server);
#endif /* SERVER_H */