[En-Nut-Discussion]ftpserv.c question....

ChouK chouk83 at yahoo.fr
Tue Aug 9 17:02:59 CEST 2005


hi,
why in ftpserv.c, the fonction FtpService() is call by 2 thread and
then by the main()???????
thanks for any answer

Nicolas

extracts of ftpserv.c :

THREAD(FtpThread, arg)
{
    /* Loop endless for connections. */
    for (;;) {
        FtpService();
    }
}

[...]

/* Start two additional server threads. */
    NutThreadCreate("ftpd0", FtpThread, 0, 640);
    NutThreadCreate("ftpd1", FtpThread, 0, 640);

[...]
    for (;;) {
#ifdef MY_WINSNAME
        NutWinsNameQuery(MY_WINSNAME, confnet.cdn_ip_addr);
#endif
        FtpService();


	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com



More information about the En-Nut-Discussion mailing list