• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/db-4.8.30/docs/api_reference/C/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>DB_ENV-&gt;rep_get_timeout()</title>
7    <link rel="stylesheet" href="apiReference.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB C API Reference" />
10    <link rel="up" href="rep.html" title="Chapter��10.�� Replication Methods" />
11    <link rel="prev" href="repget_request.html" title="DB_ENV-&gt;rep_get_request()" />
12    <link rel="next" href="repmessage.html" title="DB_ENV-&gt;rep_process_message()" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">DB_ENV-&gt;rep_get_timeout()</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="repget_request.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��10.��
23                Replication Methods
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="repmessage.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="sect1" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title" style="clear: both"><a id="repget_timeout"></a>DB_ENV-&gt;rep_get_timeout()</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40int
41DB_ENV-&gt;rep_get_timeout(DB_ENV *env, int which, u_int32_t *timeoutp);  </pre>
42      <p>
43         The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> method returns the timeout value for
44         the specified <span class="bold"><strong>which</strong></span> parameter. Timeout values can be
45         managed using the <a class="xref" href="repset_timeout.html" title="DB_ENV-&gt;rep_set_timeout()">DB_ENV-&gt;rep_set_timeout()</a> method.
46    </p>
47      <p>
48         The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> method may be called at any time during
49         the life of the application.
50    </p>
51      <p>
52         The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> <span>
53            <span>
54                  method returns a non-zero error value on failure and 0 on success.
55            </span>
56            
57        </span>
58    </p>
59      <div class="sect2" lang="en" xml:lang="en">
60        <div class="titlepage">
61          <div>
62            <div>
63              <h3 class="title"><a id="id1697405"></a>Parameters</h3>
64            </div>
65          </div>
66        </div>
67        <div class="sect3" lang="en" xml:lang="en">
68          <div class="titlepage">
69            <div>
70              <div>
71                <h4 class="title"><a id="id1697337"></a>timeoutp</h4>
72              </div>
73            </div>
74          </div>
75          <p>
76                          The <span class="bold"><strong>timeoutp</strong></span> parameter references
77                          memory into which  the timeout value of the specified <span class="bold"><strong>which</strong></span> parameter is copied.
78                     </p>
79          <p>
80                             The returned timeout value is in microseconds.
81                     </p>
82        </div>
83        <div class="sect3" lang="en" xml:lang="en">
84          <div class="titlepage">
85            <div>
86              <div>
87                <h4 class="title"><a id="id1697158"></a>which</h4>
88              </div>
89            </div>
90          </div>
91          <p>
92                          The <span class="bold"><strong>which</strong></span> parameter is the timeout
93                          for which the value is being returned.
94                          See the <a class="xref" href="repset_timeout.html" title="DB_ENV-&gt;rep_set_timeout()">DB_ENV-&gt;rep_set_timeout()</a>
95                          method for a list of timeouts that you can
96                          provide to this parameter.
97</p>
98        </div>
99      </div>
100      <div class="sect2" lang="en" xml:lang="en">
101        <div class="titlepage">
102          <div>
103            <div>
104              <h3 class="title"><a id="id1697453"></a>Errors</h3>
105            </div>
106          </div>
107        </div>
108        <p>
109                         The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> <span>
110            <span>
111                 method may fail and return one of the following non-zero errors:
112            </span>
113            
114        </span>
115                    </p>
116        <div class="sect3" lang="en" xml:lang="en">
117          <div class="titlepage">
118            <div>
119              <div>
120                <h4 class="title"><a id="id1697606"></a>EINVAL</h4>
121              </div>
122            </div>
123          </div>
124          <p>
125                An invalid flag value or parameter was specified.
126            </p>
127        </div>
128      </div>
129      <div class="sect2" lang="en" xml:lang="en">
130        <div class="titlepage">
131          <div>
132            <div>
133              <h3 class="title"><a id="id1697607"></a>Class</h3>
134            </div>
135          </div>
136        </div>
137        <p>
138                 <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</a>  
139            </p>
140      </div>
141      <div class="sect2" lang="en" xml:lang="en">
142        <div class="titlepage">
143          <div>
144            <div>
145              <h3 class="title"><a id="id1696817"></a>See Also</h3>
146            </div>
147          </div>
148        </div>
149        <p>
150                        <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>, 
151                        <a class="xref" href="repset_timeout.html" title="DB_ENV-&gt;rep_set_timeout()">DB_ENV-&gt;rep_set_timeout()</a>
152                </p>
153      </div>
154    </div>
155    <div class="navfooter">
156      <hr />
157      <table width="100%" summary="Navigation footer">
158        <tr>
159          <td width="40%" align="left"><a accesskey="p" href="repget_request.html">Prev</a>��</td>
160          <td width="20%" align="center">
161            <a accesskey="u" href="rep.html">Up</a>
162          </td>
163          <td width="40%" align="right">��<a accesskey="n" href="repmessage.html">Next</a></td>
164        </tr>
165        <tr>
166          <td width="40%" align="left" valign="top">DB_ENV-&gt;rep_get_request()��</td>
167          <td width="20%" align="center">
168            <a accesskey="h" href="index.html">Home</a>
169          </td>
170          <td width="40%" align="right" valign="top">��DB_ENV-&gt;rep_process_message()</td>
171        </tr>
172      </table>
173    </div>
174  </body>
175</html>
176