lwip netconn_recv blocking

sbouzo
Posts: 1
Joined: Mon Jun 25, 2018 10:24 pm

lwip netconn_recv blocking

Postby sbouzo » Mon Jun 25, 2018 10:40 pm

Hi guys ,
I am fairly new to programming in general , and right now i am facing a complicated issue .
i am using the lwip api to get some parameters from a webpage through tcp connection , using netconn functions but there is a page where the parameters that i want to send are too long >1500 so it is sent with two segments and if i want to get the two parts i have to make a loop on the netconn_recv .
I do get the two segments but then the loop blocks because netconn_recv doesn't receive any more data .
i tried many things like timeout but it doesn't work an error message pops up netconn_recvmbox
i also tried "while((err =netconn_recv(newconn, &inbuf)) == ERR_OK && inbuf != NULL){ " but it doesn't change anything
now i am trying to use a loop with :
do {
netconn_recv..
...
}while(lwip_netconn_do_recv(newconn));
but i get the error : lwip_netconn_do_recv implicit declaration of function
do you have some ideas or solutions if any of you have faced the same issue before
Thank you
PS : it is my first time on a forum so if you have some remarks concerning my post please tell me

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: lwip netconn_recv blocking

Postby PeterR » Thu Jun 28, 2018 10:13 am

void netconn_set_recvtimeout ( struct netconn * aNetConn, int aTimeout );
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: No registered users and 127 guests