lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Call tcp_close() out of tcp_recv()-context?


From: Noam Weissman
Subject: Re: [lwip-users] Call tcp_close() out of tcp_recv()-context?
Date: Mon, 7 Sep 2015 12:17:28 +0000

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: lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden 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.
************************************************************************************


reply via email to

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