Debian Codegraph @

docs/api_reference/CXX/dbsite_close.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>DbSite::close()</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_set_timeout.html" title="DbChannel::set_timeout()" />
12 <link rel="next" href="dbsite_get_config.html" title="DbSite::get_config()" />
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">DbSite::close()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbchannel_set_timeout.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_get_config.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="dbsite_close"></a>DbSite::close()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbSite::close();</pre>
45 <p>
46 The <code class="methodname">DbSite::close()</code> method
47 deallocates the DbSite handle. The handle must not be accessed
48 again after this method is called, regardless of the return value.
49 </p>
50 <p>
51 Use of this method does not in any way affect the configuration of
52 the site to which the handle refers, or of the replication group in
53 general.
54 </p>
55 <p>
56 All DbSite handles must be closed before the owning DbEnv handle
57 is closed.
58 </p>
59 <p>
60 The <code class="methodname">DbSite::close()</code> <span>
61
62 <span>
63 method either returns a non-zero error value or throws an
64 exception that encapsulates a non-zero error value on
65 failure, and returns 0 on success.
66 </span>
67 </span>
68 </p>
69 <div class="sect2" lang="en" xml:lang="en">
70 <div class="titlepage">
71 <div>
72 <div>
73 <h3 class="title"><a id="idp9376288"></a>Errors</h3>
74 </div>
75 </div>
76 </div>
77 <p>
78 The <code class="methodname">DbSite::close()</code> <span>
79
80 <span>
81 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
82 exception, encapsulating one of the following non-zero errors, or return one
83 of the following non-zero errors:
84 </span>
85 </span>
86 </p>
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="idp9327784"></a>Class</h3>
93 </div>
94 </div>
95 </div>
96 <p>
97 <a class="link" href="db_site.html" title="The DbSite Handle">DbSite</a>
98 </p>
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="idp9376936"></a>See Also</h3>
105 </div>
106 </div>
107 </div>
108 <p>
109 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>
110 </p>
111 </div>
112 </div>
113 <div class="navfooter">
114 <hr />
115 <table width="100%" summary="Navigation footer">
116 <tr>
117 <td width="40%" align="left"><a accesskey="p" href="dbchannel_set_timeout.html">Prev</a> </td>
118 <td width="20%" align="center">
119 <a accesskey="u" href="rep.html">Up</a>
120 </td>
121 <td width="40%" align="right"> <a accesskey="n" href="dbsite_get_config.html">Next</a></td>
122 </tr>
123 <tr>
124 <td width="40%" align="left" valign="top">DbChannel::set_timeout() </td>
125 <td width="20%" align="center">
126 <a accesskey="h" href="index.html">Home</a>
127 </td>
128 <td width="40%" align="right" valign="top"> DbSite::get_config()</td>
129 </tr>
130 </table>
131 </div>
132 </body>
133 </html>