| 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_CHANNEL->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 10. Replication Methods" /> |
| 11 | <link rel="prev" href="db_site.html" title="The DB_SITE Handle" /> |
| 12 | <link rel="next" href="dbchannel_send_msg.html" title="DB_CHANNEL->send_msg()" /> |
| 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_CHANNEL->close()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="db_site.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="dbchannel_send_msg.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_close"></a>DB_CHANNEL->close()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | DB_CHANNEL->close(DB_CHANNEL *channel, u_int32_t flags); </pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DB_CHANNEL->close()</code> method |
| 47 | closes the DB_CHANNEL handle, freeing any resources |
| 48 | allocated to the handle. All DB_CHANNEL handles must be |
| 49 | closed before the encompassing environment handle is closed. |
| 50 | Also, all on-going messaging operations on the channel should be |
| 51 | allowed to complete before attempting to close the channel handle. |
| 52 | </p> |
| 53 | <p> |
| 54 | After <code class="methodname">DB_CHANNEL->close()</code> has been |
| 55 | called, regardless of its return, the DB_CHANNEL handle may |
| 56 | not be accessed again. |
| 57 | </p> |
| 58 | <p> |
| 59 | The <code class="methodname">DB_CHANNEL->close()</code> <span> |
| 60 | <span> |
| 61 | method returns a non-zero error value on failure and 0 on success. |
| 62 | </span> |
| 63 | |
| 64 | </span> |
| 65 | </p> |
| 66 | <div class="sect2" lang="en" xml:lang="en"> |
| 67 | <div class="titlepage"> |
| 68 | <div> |
| 69 | <div> |
| 70 | <h3 class="title"><a id="idp53846824"></a>Parameters</h3> |
| 71 | </div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div class="sect3" lang="en" xml:lang="en"> |
| 75 | <div class="titlepage"> |
| 76 | <div> |
| 77 | <div> |
| 78 | <h4 class="title"><a id="idp53840480"></a>flags</h4> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | <p> |
| 83 | This parameter is currently unused, and must be |
| 84 | set to 0. |
| 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="idp53838456"></a>Errors</h3> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | <p> |
| 97 | The <code class="methodname">DB_CHANNEL->close()</code> |
| 98 | <span> |
| 99 | <span> |
| 100 | method may fail and return one of the following non-zero errors: |
| 101 | </span> |
| 102 | |
| 103 | </span> |
| 104 | </p> |
| 105 | <div class="sect3" lang="en" xml:lang="en"> |
| 106 | <div class="titlepage"> |
| 107 | <div> |
| 108 | <div> |
| 109 | <h4 class="title"><a id="idp53852480"></a>EINVAL</h4> |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |
| 113 | <p> |
| 114 | If this method is called from a Base API application, |
| 115 | or if an invalid flag value or parameter was specified. |
| 116 | </p> |
| 117 | </div> |
| 118 | </div> |
| 119 | <div class="sect2" lang="en" xml:lang="en"> |
| 120 | <div class="titlepage"> |
| 121 | <div> |
| 122 | <div> |
| 123 | <h3 class="title"><a id="idp53849040"></a>Class</h3> |
| 124 | </div> |
| 125 | </div> |
| 126 | </div> |
| 127 | <p> |
| 128 | <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> |
| 129 | </p> |
| 130 | </div> |
| 131 | <div class="sect2" lang="en" xml:lang="en"> |
| 132 | <div class="titlepage"> |
| 133 | <div> |
| 134 | <div> |
| 135 | <h3 class="title"><a id="idp53854568"></a>See Also</h3> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | <p> |
| 140 | <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a> |
| 141 | </p> |
| 142 | </div> |
| 143 | </div> |
| 144 | <div class="navfooter"> |
| 145 | <hr /> |
| 146 | <table width="100%" summary="Navigation footer"> |
| 147 | <tr> |
| 148 | <td width="40%" align="left"><a accesskey="p" href="db_site.html">Prev</a> </td> |
| 149 | <td width="20%" align="center"> |
| 150 | <a accesskey="u" href="rep.html">Up</a> |
| 151 | </td> |
| 152 | <td width="40%" align="right"> <a accesskey="n" href="dbchannel_send_msg.html">Next</a></td> |
| 153 | </tr> |
| 154 | <tr> |
| 155 | <td width="40%" align="left" valign="top">The DB_SITE Handle </td> |
| 156 | <td width="20%" align="center"> |
| 157 | <a accesskey="h" href="index.html">Home</a> |
| 158 | </td> |
| 159 | <td width="40%" align="right" valign="top"> DB_CHANNEL->send_msg()</td> |
| 160 | </tr> |
| 161 | </table> |
| 162 | </div> |
| 163 | </body> |
| 164 | </html> |