Debian Codegraph @

docs/api_reference/C/repget_timeout.html

raw symbols SCIP
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 xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB_ENV-&gt;rep_get_timeout()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="repget_request.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 10. 
26 Replication Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="repmessage.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="repget_timeout"></a>DB_ENV-&gt;rep_get_timeout()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;rep_get_timeout(DB_ENV *env, int which, u_int32_t *timeoutp); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> method returns the timeout value for
47 the specified <span class="bold"><strong>which</strong></span> parameter. Timeout values can be
48 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.
49 </p>
50 <p>
51 The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> method may be called at any time during
52 the life of the application.
53 </p>
54 <p>
55 The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> <span>
56 <span>
57 method returns a non-zero error value on failure and 0 on success.
58 </span>
59
60 </span>
61 </p>
62 <div class="sect2" lang="en" xml:lang="en">
63 <div class="titlepage">
64 <div>
65 <div>
66 <h3 class="title"><a id="idp54039736"></a>Parameters</h3>
67 </div>
68 </div>
69 </div>
70 <div class="sect3" lang="en" xml:lang="en">
71 <div class="titlepage">
72 <div>
73 <div>
74 <h4 class="title"><a id="idp54038616"></a>which</h4>
75 </div>
76 </div>
77 </div>
78 <p>
79 The <span class="bold"><strong>which</strong></span> parameter is the timeout
80 for which the value is being returned.
81 See the <a class="xref" href="repset_timeout.html" title="DB_ENV-&gt;rep_set_timeout()">DB_ENV-&gt;rep_set_timeout()</a>
82 method for a list of timeouts that you can
83 provide to this parameter.
84 </p>
85 </div>
86 <div class="sect3" lang="en" xml:lang="en">
87 <div class="titlepage">
88 <div>
89 <div>
90 <h4 class="title"><a id="idp54034112"></a>timeoutp</h4>
91 </div>
92 </div>
93 </div>
94 <p>
95 The <span class="bold"><strong>timeoutp</strong></span> parameter references
96 memory into which the timeout value of the specified <span class="bold"><strong>which</strong></span> parameter is copied.
97 </p>
98 <p>
99 The returned timeout value is in microseconds.
100 </p>
101 </div>
102 </div>
103 <div class="sect2" lang="en" xml:lang="en">
104 <div class="titlepage">
105 <div>
106 <div>
107 <h3 class="title"><a id="idp54040592"></a>Errors</h3>
108 </div>
109 </div>
110 </div>
111 <p>
112 The <code class="methodname">DB_ENV-&gt;rep_get_timeout()</code> <span>
113 <span>
114 method may fail and return one of the following non-zero errors:
115 </span>
116
117 </span>
118 </p>
119 <div class="sect3" lang="en" xml:lang="en">
120 <div class="titlepage">
121 <div>
122 <div>
123 <h4 class="title"><a id="idp54039216"></a>EINVAL</h4>
124 </div>
125 </div>
126 </div>
127 <p>
128 An invalid flag value or parameter was specified.
129 </p>
130 </div>
131 </div>
132 <div class="sect2" lang="en" xml:lang="en">
133 <div class="titlepage">
134 <div>
135 <div>
136 <h3 class="title"><a id="idp54045048"></a>Class</h3>
137 </div>
138 </div>
139 </div>
140 <p>
141 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
142 </p>
143 </div>
144 <div class="sect2" lang="en" xml:lang="en">
145 <div class="titlepage">
146 <div>
147 <div>
148 <h3 class="title"><a id="idp54047280"></a>See Also</h3>
149 </div>
150 </div>
151 </div>
152 <p>
153 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>,
154 <a class="xref" href="repset_timeout.html" title="DB_ENV-&gt;rep_set_timeout()">DB_ENV-&gt;rep_set_timeout()</a>
155 </p>
156 </div>
157 </div>
158 <div class="navfooter">
159 <hr />
160 <table width="100%" summary="Navigation footer">
161 <tr>
162 <td width="40%" align="left"><a accesskey="p" href="repget_request.html">Prev</a> </td>
163 <td width="20%" align="center">
164 <a accesskey="u" href="rep.html">Up</a>
165 </td>
166 <td width="40%" align="right"> <a accesskey="n" href="repmessage.html">Next</a></td>
167 </tr>
168 <tr>
169 <td width="40%" align="left" valign="top">DB_ENV-&gt;rep_get_request() </td>
170 <td width="20%" align="center">
171 <a accesskey="h" href="index.html">Home</a>
172 </td>
173 <td width="40%" align="right" valign="top"> DB_ENV-&gt;rep_process_message()</td>
174 </tr>
175 </table>
176 </div>
177 </body>
178 </html>