Browse code

tcpops: rename set_connection_lifetime -> tcp_set_connection_lifetime

Camille Oudot authored on 20/02/2015 14:00:07
Showing 3 changed files
... ...
@@ -17,13 +17,13 @@ Camille Oudot
17 17
 
18 18
               3.1. tcp_keepalive_enable([conid], idle, count, interval)
19 19
               3.2. tcp_keepalive_disable([conid])
20
-              3.3. set_connection_lifetime([conid], lifetime)
20
+              3.3. tcp_set_connection_lifetime([conid], lifetime)
21 21
 
22 22
    List of Examples
23 23
 
24 24
    1.1. tcp_keepalive_enable usage
25 25
    1.2. tcp_keepalive_disable usage
26
-   1.3. set_connection_lifetime usage
26
+   1.3. tcp_set_connection_lifetime usage
27 27
 
28 28
 Chapter 1. Admin Guide
29 29
 
... ...
@@ -35,7 +35,7 @@ Chapter 1. Admin Guide
35 35
 
36 36
         3.1. tcp_keepalive_enable([conid], idle, count, interval)
37 37
         3.2. tcp_keepalive_disable([conid])
38
-        3.3. set_connection_lifetime([conid], lifetime)
38
+        3.3. tcp_set_connection_lifetime([conid], lifetime)
39 39
 
40 40
 1. Overview
41 41
 
... ...
@@ -52,7 +52,7 @@ Chapter 1. Admin Guide
52 52
 
53 53
    3.1. tcp_keepalive_enable([conid], idle, count, interval)
54 54
    3.2. tcp_keepalive_disable([conid])
55
-   3.3. set_connection_lifetime([conid], lifetime)
55
+   3.3. tcp_set_connection_lifetime([conid], lifetime)
56 56
 
57 57
 3.1.  tcp_keepalive_enable([conid], idle, count, interval)
58 58
 
... ...
@@ -118,7 +118,7 @@ onreply_route {
118 118
         ...
119 119
 }
120 120
 
121
-3.3.  set_connection_lifetime([conid], lifetime)
121
+3.3.  tcp_set_connection_lifetime([conid], lifetime)
122 122
 
123 123
    Sets the connection lifetime of a connection (TCP).
124 124
 
... ...
@@ -130,7 +130,7 @@ onreply_route {
130 130
 
131 131
    Retuns 1 on success, -1 on failure.
132 132
 
133
-   Example 1.3. set_connection_lifetime usage
133
+   Example 1.3. tcp_set_connection_lifetime usage
134 134
 ...
135 135
 # use 10s as default lifetime
136 136
 tcp_connection_lifetime=10
... ...
@@ -140,7 +140,7 @@ request_route {
140 140
         ...
141 141
         if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) {
142 142
                 # raise the TCP lifetime to a bigger value
143
-                set_connection_lifetime("3605");
143
+                tcp_set_connection_lifetime("3605");
144 144
         }
145 145
         ...
146 146
 }
... ...
@@ -104,9 +104,9 @@ onreply_route {
104 104
 			]]></programlisting>
105 105
 		</example>
106 106
 	</section>
107
-	<section id="tcpops.f.set_connection_lifetime">
107
+	<section id="tcpops.f.tcp_set_connection_lifetime">
108 108
                 <title>
109
-                        <function>set_connection_lifetime([conid], lifetime)</function>
109
+                        <function>tcp_set_connection_lifetime([conid], lifetime)</function>
110 110
                 </title>
111 111
                 <para>
112 112
                                 Sets the connection lifetime of a connection (TCP).
... ...
@@ -126,7 +126,7 @@ onreply_route {
126 126
                 </itemizedlist>
127 127
                 <para>Retuns 1 on success, -1 on failure.</para>
128 128
                 <example>
129
-                        <title><function>set_connection_lifetime</function> usage</title>
129
+                        <title><function>tcp_set_connection_lifetime</function> usage</title>
130 130
                         <programlisting><![CDATA[
131 131
 ...
132 132
 # use 10s as default lifetime
... ...
@@ -137,7 +137,7 @@ request_route {
137 137
         ...
138 138
         if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) {
139 139
                 # raise the TCP lifetime to a bigger value
140
-                set_connection_lifetime("3605");
140
+                tcp_set_connection_lifetime("3605");
141 141
         }
142 142
         ...
143 143
 }
... ...
@@ -59,9 +59,9 @@ static cmd_export_t cmds[]={
59 59
 		0, ANY_ROUTE},
60 60
 	{"tcp_keepalive_disable", (cmd_function)w_tcp_keepalive_disable0, 0, 0,
61 61
 		0, REQUEST_ROUTE|ONREPLY_ROUTE},
62
-	{"set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime2, 2, fixup_numpv,
62
+	{"tcp_set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime2, 2, fixup_numpv,
63 63
 		0, ANY_ROUTE},
64
-	{"set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime1, 1, fixup_numpv,
64
+	{"tcp_set_connection_lifetime", (cmd_function)w_tcpops_set_connection_lifetime1, 1, fixup_numpv,
65 65
 		0, REQUEST_ROUTE|ONREPLY_ROUTE},
66 66
 	{0, 0, 0, 0, 0, 0}
67 67
 };