lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip_select never returns value > 0


From: contact
Subject: Re: [lwip-users] lwip_select never returns value > 0
Date: Tue, 14 Mar 2017 18:20:31 +0530

If you do not use select call, Are you able to receive anything? It may be possible that since there is no data available select will eventually timeout.

 

Regards,

Ajay bhargav

 

 

From: pekez
Sent: Tuesday, March 14, 2017 6:17 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] lwip_select never returns value > 0

 

Hi Ajay,

I have just checked it. Since timeout always expires, return value of lwip_select() is always 0. Therefore no errno is set.

On 14.3.2017 13:40, address@hidden wrote:

Hi Nenad,

 

Did you check errno?

 

Regards,

Ajay Bhargav

 

 

From: pekez
Sent: Tuesday, March 14, 2017 5:51 PM
To: Mailing list for lwIP users
Subject: [lwip-users] lwip_select never returns value > 0

 

Hi people,

 

I am trying to use lwip_select in combination with lwip_recv. I have

done it like this so far:

 

FD_ZERO(&rfds);

FD_SET(new_sd, &rfds);

tv.tv_sec = 0;

tv.tv_usec = 200000;

 

if (lwip_select(new_sd + 1, &rfds, NULL, NULL, &tv) > 0)

{

     lwip_recv()

 

}

 

No matter what, timeout always exceeds. Am I doing anything wrong?

Should I include some lwip option in order to use lwip_select()?

I am using lwip v1.4.1.

 

Regards,

Nenad

 

 

_______________________________________________

lwip-users mailing list

address@hidden

https://lists.nongnu.org/mailman/listinfo/lwip-users

 




_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]