[sr-dev] event_route for TCP connection close

Peter Dunkley peter.dunkley at crocodile-rcs.com
Sat Mar 30 15:02:53 CET 2013


Hello,

I am trying to add an event_route to be run when a TCP connection is
closed.  I have added a small function to tcp_main.c to call it but I
cannot work-out where to put the call.

I have tried tcpconn_destroy() but that doesn't seem to work.

Ideally, I need to find a single place to call this new function which has
access to the tcp_connection structure for the connection that has closed.
 If not a single place, then as few as possible would be good.

Does anyone know the TCP code well enough to advise me where to put this?

Thanks,

Peter


-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd




More information about the sr-dev mailing list