Commit 62b4d2478f440eeb48b9a704da2c656a83bb7d51
1 parent
16d49651
add : pong from the server
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
server.c
... | ... | @@ -170,6 +170,11 @@ int boucleServeur2(int ecoute) |
170 | 170 | fgets(ligne,MAX_LIGNE,f); |
171 | 171 | printf(">%i$ %s\n", i+1, ligne); |
172 | 172 | |
173 | + //renvoyer à tous les clients | |
174 | + for(int j = 0 ; j < LongueurPoll-1 ; j++){ | |
175 | + if(j != i) | |
176 | + dprintf(descripteurs[j+1].fd, ":%s\n", ligne); | |
177 | + } | |
173 | 178 | } |
174 | 179 | } |
175 | 180 | ... | ... |