[En-Nut-Discussion] main problem in httpserv.c

ChouK chouk83 at yahoo.fr
Mon Jul 11 12:31:24 CEST 2005



ChouK <chouk83 at yahoo.fr> a écrit :
Hi,

I try to make turn some applications and in particular httpserv.c. I add to it in the main() some instructions and at the time of the execussion, the card does not buckle on the for (;;) but on the main() in entirety, re initializing the HTTP server at the end of the nutsleep(60000). Why? Can you help me?? 

I work with the ethernut card 2.1b and with ethernut 3.9.7 soft.

Thank you for any answer.
Nicolas

(Nb. Sorry for my bad english)

for (;;) {

NutSleep(60000);

sortie = fopen(fichier, "at");
printf("saisie n %d\n", bclMain);
fgets(&ch, 6, stdin);
fwrite(&ch, sizeof(char), 5, sortie);
fclose(sortie);
printf("fin de saisie n %d\n", bclMain);

entree = fopen(fichier, "rt");
printf("impression n %d\n", bclMain);
while(fread(&ch, sizeof(char), 1, entree), !feof(entree))
printf("%c", ch);
fclose(entree);
printf("\nfin impression n %d\n", bclMain);
bclMain++;

}





Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail sur http://mail.yahoo.fr
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion


		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  


More information about the En-Nut-Discussion mailing list