Debian Codegraph @

docs/api_reference/CXX/dbchannel_set_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>DbChannel::set_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 11.  Replication Methods" />
11 <link rel="prev" href="dbchannel_send_request.html" title="DbChannel::send_request()" />
12 <link rel="next" href="dbsite_close.html" title="DbSite::close()" />
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">DbChannel::set_timeout()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbchannel_send_request.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 11. 
26 Replication Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbsite_close.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="dbchannel_set_timeout"></a>DbChannel::set_timeout()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbChannel::set_timeout(db_timeout_t timeout);</pre>
45 <p>
46 The <code class="methodname">DbChannel::set_timeout()</code> method
47 sets the default timeout value for the DbChannel handle.
48 This timeout is used by the
49 <a class="xref" href="dbchannel_send_request.html" title="DbChannel::send_request()">DbChannel::send_request()</a>
50 method.
51 </p>
52 <p>
53 The <code class="methodname">DbChannel::set_timeout()</code> <span>
54
55 <span>
56 method either returns a non-zero error value or throws an
57 exception that encapsulates a non-zero error value on
58 failure, and returns 0 on success.
59 </span>
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="idp9366080"></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="idp9365432"></a>timeout</h4>
75 </div>
76 </div>
77 </div>
78 <p>
79 Configures the amount of time that may elapse while the
80 <a class="xref" href="dbchannel_send_request.html" title="DbChannel::send_request()">DbChannel::send_request()</a>
81 method waits for a message response. The timeout value
82 must be specified as an unsigned 32-bit number of
83 microseconds, limiting the maximum timeout to roughly 71
84 minutes.
85 </p>
86 </div>
87 </div>
88 <div class="sect2" lang="en" xml:lang="en">
89 <div class="titlepage">
90 <div>
91 <div>
92 <h3 class="title"><a id="idp9350144"></a>Errors</h3>
93 </div>
94 </div>
95 </div>
96 <p>
97 The <code class="methodname">DbChannel::set_timeout()</code>
98 <span>
99
100 <span>
101 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
102 exception, encapsulating one of the following non-zero errors, or return one
103 of the following non-zero errors:
104 </span>
105 </span>
106 </p>
107 <div class="sect3" lang="en" xml:lang="en">
108 <div class="titlepage">
109 <div>
110 <div>
111 <h4 class="title"><a id="idp9371920"></a>EINVAL</h4>
112 </div>
113 </div>
114 </div>
115 <p>
116 If this method is called from a Base API application,
117 or if an invalid flag value or parameter was specified.
118 </p>
119 </div>
120 </div>
121 <div class="sect2" lang="en" xml:lang="en">
122 <div class="titlepage">
123 <div>
124 <div>
125 <h3 class="title"><a id="idp9370840"></a>Class</h3>
126 </div>
127 </div>
128 </div>
129 <p>
130 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>
131 </p>
132 </div>
133 <div class="sect2" lang="en" xml:lang="en">
134 <div class="titlepage">
135 <div>
136 <div>
137 <h3 class="title"><a id="idp9373216"></a>See Also</h3>
138 </div>
139 </div>
140 </div>
141 <p>
142 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>
143 </p>
144 </div>
145 </div>
146 <div class="navfooter">
147 <hr />
148 <table width="100%" summary="Navigation footer">
149 <tr>
150 <td width="40%" align="left"><a accesskey="p" href="dbchannel_send_request.html">Prev</a> </td>
151 <td width="20%" align="center">
152 <a accesskey="u" href="rep.html">Up</a>
153 </td>
154 <td width="40%" align="right"> <a accesskey="n" href="dbsite_close.html">Next</a></td>
155 </tr>
156 <tr>
157 <td width="40%" align="left" valign="top">DbChannel::send_request() </td>
158 <td width="20%" align="center">
159 <a accesskey="h" href="index.html">Home</a>
160 </td>
161 <td width="40%" align="right" valign="top"> DbSite::close()</td>
162 </tr>
163 </table>
164 </div>
165 </body>
166 </html>