R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
/*
2
** EPITECH PROJECT, 2025
3
** Created by mael on 17/11/2025.
4
** File description:
5
** main.cpp
6
*/
7
8
#include <iostream>
9
#include "
server/Server/Server.hpp
"
10
11
int
main
(
int
argc,
char
**argv) {
12
uint16_t port = 4242;
13
if
(argc > 1) {
14
port =
static_cast<
uint16_t
>
(std::atoi(argv[1]));
15
}
16
17
// Create and run server
18
Server
server
(port);
19
20
if
(!
server
.initialize()) {
21
std::cerr <<
"Failed to initialize server"
<< std::endl;
22
return
1;
23
}
24
25
server
.run();
26
27
return
0;
28
}
Server.hpp
Server
R-Type server application.
Definition
Server.hpp:74
main
int main(int argc, char **argv)
Definition
main.cpp:30
server
Definition
CommandContext.hpp:16
server
main.cpp
Generated by
1.9.8