Fixes on README and on -p display for v1 and v2
This commit is contained in:
parent
031a058b01
commit
0f6fb1e90f
3 changed files with 6 additions and 3 deletions
|
@ -83,3 +83,5 @@ Example usage of v4 :
|
|||
- [X] server can handle multiple requests simultaneously
|
||||
- [X] server doesn't stop after the connection ends
|
||||
- [X] both client and server can assume sender/receiver roles
|
||||
|
||||
Every version is fully functional.
|
||||
|
|
|
@ -72,7 +72,8 @@ int main (int argc, char **argv) {
|
|||
|
||||
char* message = malloc(BASE_SIZE * sizeof(char));
|
||||
|
||||
if (source == -1) {
|
||||
// At least one option -s or -u required. UDP is also required for this version.
|
||||
if (source == -1 || !udp) {
|
||||
print_usage(argv[0]);
|
||||
exit(1) ;
|
||||
}
|
||||
|
@ -95,7 +96,7 @@ int main (int argc, char **argv) {
|
|||
nb_message = 10 ;
|
||||
printf("nb de tampons à envoyer = 10 par défaut\n");
|
||||
} else
|
||||
printf("nb de tampons à envoyer = infini\n");
|
||||
printf("nb de tampons à recevoir = infini\n");
|
||||
}
|
||||
|
||||
if (udp==1){
|
||||
|
|
|
@ -92,7 +92,7 @@ int main (int argc, char **argv) {
|
|||
nb_message = 10 ;
|
||||
printf("nb de tampons à envoyer = 10 par défaut\n");
|
||||
} else
|
||||
printf("nb de tampons à envoyer = infini\n");
|
||||
printf("nb de tampons à recevoir = infini\n");
|
||||
}
|
||||
|
||||
if (udp==1){
|
||||
|
|
Loading…
Reference in a new issue