Hi Karl, In general you should not call any call back function out of the TCP context.
One way is raise a flag externally and in the poll call back check this flag. If it is set call the tcp_close … inside the poll call back BR, Noam. From: [email protected] [mailto:[email protected]] On Behalf Of Karl Karpfen Sent: Monday, September 07, 2015 2:02 PM To: Mailing list for lwIP users Subject: [lwip-users] Call tcp_close() out of tcp_recv()-context? Hi, I'm using raw-API within my application and have defined a receive-callback by using tcp_recv(). Now it may happen a close-command (from my own protocol running on top of TCP/IP) is received within this receive-callback. My question: is it allowed to call tcp_close() out of the context of this receive-function? Thanks! Karl ************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ************************************************************************************ ************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ************************************************************************************
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
