hello LwIP,
I'm developping a TCP client application. I'm using the netconn API
(v1.4.1).
In simple tests, I tried to exchange data betwenn server. transmission
succeeded only for 17 sequential exchanges then I get error from
netconn_recv.
I have to to note that this behaviour presists for both blocking and
non-blocking reception. I've attached my lwipopts.h
The client code seems as:
l_eConnErr |=
netconn_write_partly((*(l_sConnInfo.m_ppsConn)), Eth_Data, l_uiRcvByteCount,
NETCONN_NOCOPY, &l_uiSentByteCount);
/* ... */
if (l_eConnErr != ERR_OK)
{
/* hadle connection error */
}
if (l_eConnErr == ERR_OK)
{
l_eConnErr |= netconn_recv((*(l_sConnInfo.m_ppsConn)),
&l_psIONetBuf);
if(l_eConnErr == ERR_OK)// && (Cnt > 0))
{
l_eConnErr |= netbuf_data(l_psIONetBuf,
(void**)(&Eth_Data), (uint16_t*)&l_uiRcvByteCount);
/* ... */
netbuf_free(l_psIONetBuf);
}
Thank you for helping.
lwipopts.h <http://lwip.100.n7.nabble.com/file/n30172/lwipopts.h>
--
View this message in context:
http://lwip.100.n7.nabble.com/netconn-API-reliability-issue-tp30172.html
Sent from the lwip-users mailing list archive at Nabble.com.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users