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
dc0a1728
Commit
dc0a1728
authored
Apr 07, 2020
by
Stephane Talbot
Browse files
Merge branch 'master' into develop
Recuperation des modifications de la branche master
parents
0dd362a9
820bceab
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitmodules
View file @
dc0a1728
[submodule "col3-bibtp1"]
[submodule "col3-bibtp1"]
path = col3-bibtp1
path = col3-bibtp1
url =
https://manouchian.univ-smb.fr/syncproc
/col3-bibtp1.git
url =
..
/col3-bibtp1.git
Makefile.am
View file @
dc0a1728
...
@@ -19,6 +19,5 @@ col3_client_etu_SOURCES = \
...
@@ -19,6 +19,5 @@ col3_client_etu_SOURCES = \
clientCOL3.h
clientCOL3.h
col3_client_etu_LDADD
=
\
col3_client_etu_LDADD
=
\
-lncurses
\
-lrt
\
-lrt
\
col3-bibtp1/libcol3tp1.a
col3-bibtp1/libcol3tp1.a
README.md
View file @
dc0a1728
...
@@ -11,11 +11,11 @@ Le projet utilise un sous-module git [^1] [^2] pour la bibliothèque partagée a
...
@@ -11,11 +11,11 @@ Le projet utilise un sous-module git [^1] [^2] pour la bibliothèque partagée a
Lorsqu'on clone le dépôt git, il faut aussi obtenir la partie qui correspond au sous-module. Cela peut se faire
Lorsqu'on clone le dépôt git, il faut aussi obtenir la partie qui correspond au sous-module. Cela peut se faire
soit en utilisant la commande :
soit en utilisant la commande :
```
```
git clone --recurse-submodules https://manouchian.univ-smb.fr/
syncproc
/col3-client-etu.git
git clone --recurse-submodules https://manouchian.univ-smb.fr/
info604
/col3-client-etu.git
```
```
soit avec un clonage normal, suivit par une initialisation du sous module :
soit avec un clonage normal, suivit par une initialisation du sous module :
```
```
git clone https://manouchian.univ-smb.fr/
syncproc
/col3-client-etu.git
git clone https://manouchian.univ-smb.fr/
info604
/col3-client-etu.git
# initialisation sous-module
# initialisation sous-module
git submodule init
git submodule init
# recuperation de sous-module (commit approprie)
# recuperation de sous-module (commit approprie)
...
@@ -30,13 +30,6 @@ git submodule update
...
@@ -30,13 +30,6 @@ git submodule update
## Construction du projet
## Construction du projet
### Pré-requit
la bibliothèque col3-bibtp1 a besoin de NCURSE
```
# installation sous Ubuntu
sudo apt install libncurses-dev
```
### Construction manuelle
### Construction manuelle
C'est un projet 'autotools', donc il suffit d'aller dans le dossier projet et d'utiliser les commandes habituelles:
C'est un projet 'autotools', donc il suffit d'aller dans le dossier projet et d'utiliser les commandes habituelles:
...
...
col3-bibtp1
@
8cbc48e0
Subproject commit 8
517868690355e92d214aec6020063e8c6b54fa2
Subproject commit 8
cbc48e00153e4f9ec00fbab445ba7afb70e6293
main.c
View file @
dc0a1728
...
@@ -57,6 +57,9 @@ int main(int argc, char *argv[])
...
@@ -57,6 +57,9 @@ int main(int argc, char *argv[])
else
if
(
0
==
strcmp
(
"-s"
,
argv
[
i
])){
else
if
(
0
==
strcmp
(
"-s"
,
argv
[
i
])){
if
(
argv
[
i
+
1
]
!=
NULL
)
strcpy
(
ADRESSE
,
argv
[
i
+
1
]);
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
++
;
i
++
;
}
}
...
@@ -70,6 +73,7 @@ int main(int argc, char *argv[])
...
@@ -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
(
" -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
(
" -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
(
" -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
(
" --debug : lance le client en mode debug
\n
"
);
printf
(
" --test : lance le test de connexion avec le serveur CoL3
\n\n
"
);
printf
(
" --test : lance le test de connexion avec le serveur CoL3
\n\n
"
);
}
}
...
...
Write
Preview
Markdown
is supported
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