[En-Nut-Discussion] Interrupting NutTcpSend/Receive from other thread

Waschk,Kolja enut at ixo.de
Thu Feb 12 20:44:01 CET 2004


Hi..

I wonder what is the "best" method to force disconnection of a TCP socket
from one thread, while other threads are currently blocking on a NutTcpSend
or -Receive on that socket? I could use some global flag indicating the
disconnection request and "manually" post an event on the socket's
so_tx_tq/so_rx_tq to wake up the other threads...

Is there a better method?

Kolja

-- 
mr. kolja waschk - haubach-39 - 22765 hh - ger
phone +49 40 889130-34 - fax -35 - e-mail s.a.




More information about the En-Nut-Discussion mailing list