| 11 | |
| 12 | |
| 13 | int 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 |