Hello there,
I try to use a SOCK_DGRAM socket in a non-blocking mode. I would like to have a
code like this :
While(True)
if (sendto( socket, ....)>=0)
{ if (recvfrom( socket...)>=0)
{ do job
}
}
My problem is that the recvfrom is block the process. So, if the peer never
answer (or if the packet is lost), the recvfrom never returns and my process is
dead. I have try SO_RCVTIMEO option, but it seems it is not support by lwIP. I
read in the lwIP.pdf document (Adam Dunkels, Feb 20, 2001, chapiter 17) that
"select" is not supported.
So, How can I do to do a code like this, with a timeout on recvfrom ?
Note I use a lwIP 1.1.0 on a multithread OS. Perhaps a bug in our sys_arch ?
Thanks
==============================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : [EMAIL PROTECTED]
Web Site : http://www.hymatom.fr
==============================
BEGIN:VCARD
VERSION:2.1
N:BERNON;Frédéric;;M.
FN:Frédéric BERNON
ORG:HYMATOM SA;Recherche et Développement
TITLE:Chef de projet informatique
TEL;WORK;VOICE:04-67-87-61-10
TEL;WORK;FAX:04-67-70-85-44
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE;
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D=
=0AFrance
URL;WORK:http://www.hymatom.fr
ROLE:Chef de projet informatique
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20020404T083210Z
END:VCARD
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users