瀏覽代碼

tcpops: rename set_connection_lifetime -> tcp_set_connection_lifetime

Camille Oudot 10 年之前
父節點
當前提交
7978bfd638
共有 3 個文件被更改,包括 13 次插入13 次删除
  1. 7 7
      modules/tcpops/README
  2. 4 4
      modules/tcpops/doc/functions.xml
  3. 2 2
      modules/tcpops/tcpops_mod.c

+ 7 - 7
modules/tcpops/README

@@ -17,13 +17,13 @@ Camille Oudot
 
 
               3.1. tcp_keepalive_enable([conid], idle, count, interval)
               3.1. tcp_keepalive_enable([conid], idle, count, interval)
               3.2. tcp_keepalive_disable([conid])
               3.2. tcp_keepalive_disable([conid])
-              3.3. set_connection_lifetime([conid], lifetime)
+              3.3. tcp_set_connection_lifetime([conid], lifetime)
 
 
    List of Examples
    List of Examples
 
 
    1.1. tcp_keepalive_enable usage
    1.1. tcp_keepalive_enable usage
    1.2. tcp_keepalive_disable usage
    1.2. tcp_keepalive_disable usage
-   1.3. set_connection_lifetime usage
+   1.3. tcp_set_connection_lifetime usage
 
 
 Chapter 1. Admin Guide
 Chapter 1. Admin Guide
 
 
@@ -35,7 +35,7 @@ Chapter 1. Admin Guide
 
 
         3.1. tcp_keepalive_enable([conid], idle, count, interval)
         3.1. tcp_keepalive_enable([conid], idle, count, interval)
         3.2. tcp_keepalive_disable([conid])
         3.2. tcp_keepalive_disable([conid])
-        3.3. set_connection_lifetime([conid], lifetime)
+        3.3. tcp_set_connection_lifetime([conid], lifetime)
 
 
 1. Overview
 1. Overview
 
 
@@ -52,7 +52,7 @@ Chapter 1. Admin Guide
 
 
    3.1. tcp_keepalive_enable([conid], idle, count, interval)
    3.1. tcp_keepalive_enable([conid], idle, count, interval)
    3.2. tcp_keepalive_disable([conid])
    3.2. tcp_keepalive_disable([conid])
-   3.3. set_connection_lifetime([conid], lifetime)
+   3.3. tcp_set_connection_lifetime([conid], lifetime)
 
 
 3.1.  tcp_keepalive_enable([conid], idle, count, interval)
 3.1.  tcp_keepalive_enable([conid], idle, count, interval)
 
 
@@ -118,7 +118,7 @@ onreply_route {
         ...
         ...
 }
 }
 
 
-3.3.  set_connection_lifetime([conid], lifetime)
+3.3.  tcp_set_connection_lifetime([conid], lifetime)
 
 
    Sets the connection lifetime of a connection (TCP).
    Sets the connection lifetime of a connection (TCP).
 
 
@@ -130,7 +130,7 @@ onreply_route {
 
 
    Retuns 1 on success, -1 on failure.
    Retuns 1 on success, -1 on failure.
 
 
-   Example 1.3. set_connection_lifetime usage
+   Example 1.3. tcp_set_connection_lifetime usage
 ...
 ...
 # use 10s as default lifetime
 # use 10s as default lifetime
 tcp_connection_lifetime=10
 tcp_connection_lifetime=10
@@ -140,7 +140,7 @@ request_route {
         ...
         ...
         if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) {
         if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) {
                 # raise the TCP lifetime to a bigger value
                 # raise the TCP lifetime to a bigger value
-                set_connection_lifetime("3605");
+                tcp_set_connection_lifetime("3605");
         }
         }
         ...
         ...
 }
 }

+ 4 - 4
modules/tcpops/doc/functions.xml

@@ -104,9 +104,9 @@ onreply_route {
 			]]></programlisting>
 			]]></programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
-	<section id="tcpops.f.set_connection_lifetime">
+	<section id="tcpops.f.tcp_set_connection_lifetime">
                 <title>
                 <title>
-                        <function>set_connection_lifetime([conid], lifetime)</function>
+                        <function>tcp_set_connection_lifetime([conid], lifetime)</function>
                 </title>
                 </title>
                 <para>
                 <para>
                                 Sets the connection lifetime of a connection (TCP).
                                 Sets the connection lifetime of a connection (TCP).
@@ -126,7 +126,7 @@ onreply_route {
                 </itemizedlist>
                 </itemizedlist>
                 <para>Retuns 1 on success, -1 on failure.</para>
                 <para>Retuns 1 on success, -1 on failure.</para>
                 <example>
                 <example>
-                        <title><function>set_connection_lifetime</function> usage</title>
+                        <title><function>tcp_set_connection_lifetime</function> usage</title>
                         <programlisting><![CDATA[
                         <programlisting><![CDATA[
 ...
 ...
 # use 10s as default lifetime
 # use 10s as default lifetime
@@ -137,7 +137,7 @@ request_route {
         ...
         ...
         if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) {
         if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) {
                 # raise the TCP lifetime to a bigger value
                 # raise the TCP lifetime to a bigger value
-                set_connection_lifetime("3605");
+                tcp_set_connection_lifetime("3605");
         }
         }
         ...
         ...
 }
 }

+ 2 - 2
modules/tcpops/tcpops_mod.c

@@ -59,9 +59,9 @@ static cmd_export_t cmds[]={
 		0, ANY_ROUTE},
 		0, ANY_ROUTE},
 	{"tcp_keepalive_disable", (cmd_function)w_tcp_keepalive_disable0, 0, 0,
 	{"tcp_keepalive_disable", (cmd_function)w_tcp_keepalive_disable0, 0, 0,
 		0, REQUEST_ROUTE|ONREPLY_ROUTE},
 		0, REQUEST_ROUTE|ONREPLY_ROUTE},
-	{"set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime2, 2, fixup_numpv,
+	{"tcp_set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime2, 2, fixup_numpv,
 		0, ANY_ROUTE},
 		0, ANY_ROUTE},
-	{"set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime1, 1, fixup_numpv,
+	{"tcp_set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime1, 1, fixup_numpv,
 		0, REQUEST_ROUTE|ONREPLY_ROUTE},
 		0, REQUEST_ROUTE|ONREPLY_ROUTE},
 	{0, 0, 0, 0, 0, 0}
 	{0, 0, 0, 0, 0, 0}
 };
 };