essai de correction d'erreur pour le serveur recepteur infini
This commit is contained in:
parent
507f786195
commit
8e7082a9cb
1 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,7 @@ int main (int argc, char **argv) {
|
|||
int lg_mesg = 30;
|
||||
int lg_max = 30;
|
||||
int nb_max_connexion = 5;
|
||||
int count = 0; // compte le nombre de messages transmis
|
||||
char* pmesg;
|
||||
|
||||
while ((c = getopt(argc, argv, "pscertun:l:")) != -1) {
|
||||
|
@ -413,7 +414,7 @@ int main (int argc, char **argv) {
|
|||
//reception
|
||||
lg_max=lg_mesg;
|
||||
/* if (nb_message == -1) { */
|
||||
int count = 0;
|
||||
count = 0;
|
||||
while ((lg_mesg=recv(sock_bis, pmesg, lg_max, 0))>0) {
|
||||
count++;
|
||||
printf("PUITS: Reception ");
|
||||
|
|
Loading…
Reference in a new issue