mirror of
https://github.com/overte-org/overte.git
synced 2025-06-18 07:20:10 +02:00
code review comments
This commit is contained in:
parent
4905032090
commit
2fd043b55c
1 changed files with 7 additions and 4 deletions
|
@ -85,11 +85,14 @@ int main(int argc, const char* argv[]) {
|
|||
|
||||
timeval lastStatSendTime = {};
|
||||
|
||||
const char ASSIGNMENT_POOL_OPTION = "-p";
|
||||
const char ASSIGNMENT_SERVER_OPTION = "-a";
|
||||
|
||||
// set our assignment pool from argv, if it exists
|
||||
const char* assignmentPool = getCmdOption(argc, argv, "-p");
|
||||
const char* assignmentPool = getCmdOption(argc, argv, ASSIGNMENT_POOL_OPTION);
|
||||
|
||||
// grab the overriden assignment-server hostname from argv, if it exists
|
||||
const char* customAssignmentServer = getCmdOption(argc, argv, "-a");
|
||||
const char* customAssignmentServer = getCmdOption(argc, argv, ASSIGNMENT_SERVER_OPTION);
|
||||
if (customAssignmentServer) {
|
||||
sockaddr_in customAssignmentSocket = socketForHostnameAndHostOrderPort(customAssignmentServer, ASSIGNMENT_SERVER_PORT);
|
||||
nodeList->setAssignmentServerSocket((sockaddr*) &customAssignmentSocket);
|
||||
|
|
Loading…
Reference in a new issue