• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/api_reference/CXX/
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>DbEnv::rep_get_config()</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="repget_clockskew.html" title="DbEnv::rep_get_clockskew()" />
12    <link rel="next" href="repget_limit.html" title="DbEnv::rep_get_limit()" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">DbEnv::rep_get_config()</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="repget_clockskew.html">Prev</a> </td>
22          <th width="60%" align="center">Chapter 11. 
23                Replication Methods
24        </th>
25          <td width="20%" align="right"> <a accesskey="n" href="repget_limit.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_config"></a>DbEnv::rep_get_config()</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db_cxx.h&gt;
39
40int
41DbEnv::rep_get_config(u_int32_t which, int *onoffp);</pre>
42      <p>
43         The <code class="methodname">DbEnv::rep_get_config()</code> method returns whether the specified
44         <span class="bold"><strong>which</strong></span> parameter is currently set or not.
45         See the <a class="xref" href="repconfig.html" title="DbEnv::rep_set_config()">DbEnv::rep_set_config()</a> method for the
46         configuration flags that can be set for replication.
47    </p>
48      <p>
49         The <code class="methodname">DbEnv::rep_get_config()</code> method may be called at any time during
50         the life of the application.
51    </p>
52      <p>
53         The <code class="methodname">DbEnv::rep_get_config()</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="id1700767"></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="id1701176"></a>onoffp</h4>
75              </div>
76            </div>
77          </div>
78          <p>
79                          The <span class="bold"><strong>onoffp</strong></span> parameter references
80                          memory into which  the configuration of the specified <span class="bold"><strong>which</strong></span> parameter is copied.
81                     </p>
82          <p>
83                             If the returned <span class="bold"><strong>onoff</strong></span> value is zero, 
84                             the parameter is off; otherwise it is on. 
85                     </p>
86        </div>
87        <div class="sect3" lang="en" xml:lang="en">
88          <div class="titlepage">
89            <div>
90              <div>
91                <h4 class="title"><a id="id1700768"></a>which</h4>
92              </div>
93            </div>
94          </div>
95          <p>
96                          The <span class="bold"><strong>which</strong></span> parameter is the configuration flag
97                          which is being checked.
98                          See the <a class="xref" href="repconfig.html" title="DbEnv::rep_set_config()">DbEnv::rep_set_config()</a>
99                          method for a list of configuration flags that you can
100                          provide to this parameter.
101                     </p>
102        </div>
103      </div>
104      <div class="sect2" lang="en" xml:lang="en">
105        <div class="titlepage">
106          <div>
107            <div>
108              <h3 class="title"><a id="id1701368"></a>Class</h3>
109            </div>
110          </div>
111        </div>
112        <p>
113                    <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>  
114            </p>
115      </div>
116      <div class="sect2" lang="en" xml:lang="en">
117        <div class="titlepage">
118          <div>
119            <div>
120              <h3 class="title"><a id="id1701166"></a>See Also</h3>
121            </div>
122          </div>
123        </div>
124        <p>
125                     <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>,
126                    <a class="xref" href="repconfig.html" title="DbEnv::rep_set_config()">DbEnv::rep_set_config()</a>
127                </p>
128      </div>
129    </div>
130    <div class="navfooter">
131      <hr />
132      <table width="100%" summary="Navigation footer">
133        <tr>
134          <td width="40%" align="left"><a accesskey="p" href="repget_clockskew.html">Prev</a> </td>
135          <td width="20%" align="center">
136            <a accesskey="u" href="rep.html">Up</a>
137          </td>
138          <td width="40%" align="right"> <a accesskey="n" href="repget_limit.html">Next</a></td>
139        </tr>
140        <tr>
141          <td width="40%" align="left" valign="top">DbEnv::rep_get_clockskew() </td>
142          <td width="20%" align="center">
143            <a accesskey="h" href="index.html">Home</a>
144          </td>
145          <td width="40%" align="right" valign="top"> DbEnv::rep_get_limit()</td>
146        </tr>
147      </table>
148    </div>
149  </body>
150</html>
151