mirror of
https://github.com/modelec/GameController.git
synced 2026-01-18 16:47:32 +01:00
host address command line
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -19,9 +19,9 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
int port = clParser.getOption<int>("port", 8080);
|
int port = clParser.getOption<int>("port", 8080);
|
||||||
|
|
||||||
std::string host = clParser.getOption("host", "127.0.0.1");
|
auto host = clParser.getOption("host", "127.0.0.1");
|
||||||
|
|
||||||
GameControllerHandler gameControllerHandler(host.c_str(), port);
|
GameControllerHandler gameControllerHandler(host, port);
|
||||||
|
|
||||||
if (!gameControllerHandler.init()) {
|
if (!gameControllerHandler.init()) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user