MCPcopy Create free account
hub / github.com/cuberite/cuberite / main

Function main

Tools/ProtoProxy/ProtoProxy.cpp:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13int main(int argc, char ** argv)
14{
15 int ListenPort = (argc > 1) ? atoi(argv[1]) : 25564;
16 int ConnectPort = (argc > 2) ? atoi(argv[2]) : 25565;
17 cServer Server;
18 int res = Server.Init(ListenPort, ConnectPort);
19 if (res != 0)
20 {
21 printf("Server initialization failed: %d", res);
22 return res;
23 }
24
25 Server.Run();
26
27 return 0;
28}
29
30
31

Callers

nothing calls this directly

Calls 2

InitMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected