<?xml version="1.0" encoding='ISO-8859-1'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [

<!-- Include general documentation entities -->
<!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
%docentities;

]>
<section id="tcpops.ex.event_routes">
    <title>Event routes</title>
    <section>
        <title>
            <function moreinfo="none">tcp:closed</function>
        </title>
        <para>
			This route is called when a socket is closed by the remote party,
			or reset, or timeout. The corresponding <emphasis>$conid</emphasis>
			variable will be available in the event route. 
        </para>
        <para>
			Whether this route is always called, never, or on a per socket basis
			is controlled by the <emphasis>closed_event</emphasis> parameter.
        </para>
        <para>
    		<programlisting  format="linespecific">
...
event_route[tcp:closed] {
    xlog("L_INFO", "TCP connection closed ($conid)\n");
}
...
  	    	</programlisting>
    	</para>
	</section>
</section>