Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Info604
col3-client-etu
Commits
cdff8350
Commit
cdff8350
authored
Apr 07, 2020
by
Stephane Talbot
Browse files
ajout parametre en ligne de commande pour passer le token au client
parent
400aee55
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.c
View file @
cdff8350
...
...
@@ -57,6 +57,9 @@ int main(int argc, char *argv[])
else
if
(
0
==
strcmp
(
"-s"
,
argv
[
i
])){
if
(
argv
[
i
+
1
]
!=
NULL
)
strcpy
(
ADRESSE
,
argv
[
i
+
1
]);
}
else
if
(
0
==
strcmp
(
"-t"
,
argv
[
i
])){
if
(
argv
[
i
+
1
]
!=
NULL
)
strcpy
(
MONTOKEN
,
argv
[
i
+
1
]);
}
i
++
;
}
...
...
@@ -70,6 +73,7 @@ int main(int argc, char *argv[])
printf
(
" -p [port] : port d'accès du serveur CoL3 (valeur par defaut = 8080)
\n
"
);
printf
(
" -s [adresseIP] : adresse IP du serveur CoL3 (valeur par defaut = 127.0.0.1)
\n
"
);
printf
(
" -n [nomduclan] : nom du clan (valeur par défaut = TEST
\n
"
);
printf
(
" -t [token] : token de connexion
\n
"
);
printf
(
" --debug : lance le client en mode debug
\n
"
);
printf
(
" --test : lance le test de connexion avec le serveur CoL3
\n\n
"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment