mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-09 09:16:42 +00:00
Major rewrite of the network
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -15,12 +15,13 @@ void DebugData();
|
||||
void LogInit();
|
||||
void ParseConfig();
|
||||
void addToLog(const string& Data);
|
||||
void ServerMain(int Port, int MaxClients);
|
||||
//void ServerMain(int Port, int MaxClients);
|
||||
void HeartbeatInit();
|
||||
string ServerVersion = "0.1";
|
||||
string ClientVersion = "0.21";
|
||||
void HandleResources(const std::string& path);
|
||||
void TCPMain(int Port);
|
||||
//void TCPMain(int Port);
|
||||
void NetMain();
|
||||
//Entry
|
||||
int main() {
|
||||
LogInit();
|
||||
@@ -29,9 +30,10 @@ int main() {
|
||||
HeartbeatInit();
|
||||
if(Debug)DebugData();
|
||||
setLoggerLevel(0); //0 for all
|
||||
std::thread TCPThread(TCPMain,Port);
|
||||
TCPThread.detach();
|
||||
ServerMain(Port, MaxPlayers);
|
||||
/*std::thread TCPThread(TCPMain,Port);
|
||||
TCPThread.detach();*/
|
||||
//ServerMain(Port, MaxPlayers);
|
||||
NetMain();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user