| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 |
<meta name="generator" content="Doxygen 1.15.0"/> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 |
<title>Xapian: API Documentation: Xapian::Remote Namespace Reference</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 16 |
<div id="titlearea"> |
| 17 |
<table cellspacing="0" cellpadding="0"> |
| 18 |
<tbody> |
| 19 |
<tr style="height: 56px;"> |
| 20 |
<td id="projectalign" style="padding-left: 0.5em;"> |
| 21 |
<div id="projectname">xapian-core |
| 22 |
 <span id="projectnumber">1.4.31</span> |
| 23 |
</div> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
</tbody> |
| 27 |
</table> |
| 28 |
</div> |
| 29 |
<!-- end header part --> |
| 30 |
<!-- Generated by Doxygen 1.15.0 --> |
| 31 |
<script type="text/javascript"> |
| 32 |
$(function() { codefold.init(); }); |
| 33 |
</script> |
| 34 |
<script type="text/javascript" src="menudata.js"></script> |
| 35 |
<script type="text/javascript" src="menu.js"></script> |
| 36 |
<script type="text/javascript"> |
| 37 |
$(function() { |
| 38 |
initMenu('',false,false,'search.php','Search',false); |
| 39 |
}); |
| 40 |
</script> |
| 41 |
<div id="main-nav"></div> |
| 42 |
<div id="nav-path" class="navpath"> |
| 43 |
<ul> |
| 44 |
<li class="navelem"><a href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a href="namespaceXapian_1_1Remote.html">Remote</a></li> </ul> |
| 45 |
</div> |
| 46 |
</div><!-- top --> |
| 47 |
<div id="doc-content"> |
| 48 |
<div class="header"> |
| 49 |
<div class="summary"> |
| 50 |
<a href="#func-members">Functions</a> </div> |
| 51 |
<div class="headertitle"><div class="title">Xapian::Remote Namespace Reference</div></div> |
| 52 |
</div><!--header--> |
| 53 |
<div class="contents"> |
| 54 |
|
| 55 |
<p><a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> factory functions for the remote backend. |
| 56 |
<a href="#details">More...</a></p> |
| 57 |
<table class="memberdecls"> |
| 58 |
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a> |
| 59 |
Functions</h2></td></tr> |
| 60 |
<tr class="memitem:aca6d4535825bbe637bc64b06ba6d0911" id="r_aca6d4535825bbe637bc64b06ba6d0911"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1Database.html">Database</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#aca6d4535825bbe637bc64b06ba6d0911">open</a> (const std::string &host, unsigned int port, useconds_t <a class="el" href="namespaceXapian.html#ada10bc23c3467246f078179fce2d762d">timeout</a>=10000, useconds_t connect_timeout=10000)</td></tr> |
| 61 |
<tr class="memdesc:aca6d4535825bbe637bc64b06ba6d0911"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object for read-only access to a remote database accessed via a TCP connection. <br /></td></tr> |
| 62 |
<tr class="memitem:a84deed0508be12e092e63c0e5beb90d3" id="r_a84deed0508be12e092e63c0e5beb90d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1WritableDatabase.html">WritableDatabase</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a84deed0508be12e092e63c0e5beb90d3">open_writable</a> (const std::string &host, unsigned int port, useconds_t <a class="el" href="namespaceXapian.html#ada10bc23c3467246f078179fce2d762d">timeout</a>=0, useconds_t connect_timeout=10000, int flags=0)</td></tr> |
| 63 |
<tr class="memdesc:a84deed0508be12e092e63c0e5beb90d3"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object for update access to a remote database accessed via a TCP connection. <br /></td></tr> |
| 64 |
<tr class="memitem:a11e2bf6e836693906f7137d6981f1d9d" id="r_a11e2bf6e836693906f7137d6981f1d9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1Database.html">Database</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a11e2bf6e836693906f7137d6981f1d9d">open</a> (const std::string &program, const std::string &args, useconds_t <a class="el" href="namespaceXapian.html#ada10bc23c3467246f078179fce2d762d">timeout</a>=10000)</td></tr> |
| 65 |
<tr class="memdesc:a11e2bf6e836693906f7137d6981f1d9d"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object for read-only access to a remote database accessed via a program. <br /></td></tr> |
| 66 |
<tr class="memitem:adc7fd4a5c6b738dc83097347f0d760e9" id="r_adc7fd4a5c6b738dc83097347f0d760e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1WritableDatabase.html">WritableDatabase</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#adc7fd4a5c6b738dc83097347f0d760e9">open_writable</a> (const std::string &program, const std::string &args, useconds_t <a class="el" href="namespaceXapian.html#ada10bc23c3467246f078179fce2d762d">timeout</a>=0, int flags=0)</td></tr> |
| 67 |
<tr class="memdesc:adc7fd4a5c6b738dc83097347f0d760e9"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object for update access to a remote database accessed via a program. <br /></td></tr> |
| 68 |
</table> |
| 69 |
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2> |
| 70 |
<div class="textblock"><p><a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> factory functions for the remote backend. </p> |
| 71 |
</div><a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2> |
| 72 |
<a id="aca6d4535825bbe637bc64b06ba6d0911" name="aca6d4535825bbe637bc64b06ba6d0911"></a> |
| 73 |
<h2 class="memtitle"><span class="permalink"><a href="#aca6d4535825bbe637bc64b06ba6d0911">◆ </a></span>open() <span class="overload">[1/2]</span></h2> |
| 74 |
|
| 75 |
<div class="memitem"> |
| 76 |
<div class="memproto"> |
| 77 |
<table class="memname"> |
| 78 |
<tr> |
| 79 |
<td class="memname"><a class="el" href="classXapian_1_1Database.html">Database</a> Xapian::Remote::open </td> |
| 80 |
<td>(</td> |
| 81 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>host</em></span>, </td> |
| 82 |
</tr> |
| 83 |
<tr> |
| 84 |
<td class="paramkey"></td> |
| 85 |
<td></td> |
| 86 |
<td class="paramtype">unsigned int</td> <td class="paramname"><span class="paramname"><em>port</em></span>, </td> |
| 87 |
</tr> |
| 88 |
<tr> |
| 89 |
<td class="paramkey"></td> |
| 90 |
<td></td> |
| 91 |
<td class="paramtype">useconds_t</td> <td class="paramname"><span class="paramname"><em>timeout</em></span><span class="paramdefsep"> = </span><span class="paramdefval">10000</span>, </td> |
| 92 |
</tr> |
| 93 |
<tr> |
| 94 |
<td class="paramkey"></td> |
| 95 |
<td></td> |
| 96 |
<td class="paramtype">useconds_t</td> <td class="paramname"><span class="paramname"><em>connect_timeout</em></span><span class="paramdefsep"> = </span><span class="paramdefval">10000</span> )</td> |
| 97 |
</tr> |
| 98 |
</table> |
| 99 |
</div><div class="memdoc"> |
| 100 |
|
| 101 |
<p>Construct a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object for read-only access to a remote database accessed via a TCP connection. </p> |
| 102 |
<p>Access to the remote database is via a TCP connection to the specified host and port.</p> |
| 103 |
<dl class="params"><dt>Parameters</dt><dd> |
| 104 |
<table class="params"> |
| 105 |
<tr><td class="paramname">host</td><td>hostname to connect to. </td></tr> |
| 106 |
<tr><td class="paramname">port</td><td>port number to connect to. </td></tr> |
| 107 |
<tr><td class="paramname">timeout</td><td>timeout in milliseconds. If this timeout is exceeded for any individual operation on the remote database then <a class="el" href="classXapian_1_1NetworkTimeoutError.html" title="Indicates a timeout expired while communicating with a remote database.">Xapian::NetworkTimeoutError</a> is thrown. A timeout of 0 means don't timeout. (Default is 10000ms, which is 10 seconds). </td></tr> |
| 108 |
<tr><td class="paramname">connect_timeout</td><td>timeout to use when connecting to the server. If this timeout is exceeded then <a class="el" href="classXapian_1_1NetworkTimeoutError.html" title="Indicates a timeout expired while communicating with a remote database.">Xapian::NetworkTimeoutError</a> is thrown. A timeout of 0 means don't timeout. (Default is 10000ms, which is 10 seconds). </td></tr> |
| 109 |
</table> |
| 110 |
</dd> |
| 111 |
</dl> |
| 112 |
|
| 113 |
</div> |
| 114 |
</div> |
| 115 |
<a id="a11e2bf6e836693906f7137d6981f1d9d" name="a11e2bf6e836693906f7137d6981f1d9d"></a> |
| 116 |
<h2 class="memtitle"><span class="permalink"><a href="#a11e2bf6e836693906f7137d6981f1d9d">◆ </a></span>open() <span class="overload">[2/2]</span></h2> |
| 117 |
|
| 118 |
<div class="memitem"> |
| 119 |
<div class="memproto"> |
| 120 |
<table class="memname"> |
| 121 |
<tr> |
| 122 |
<td class="memname"><a class="el" href="classXapian_1_1Database.html">Database</a> Xapian::Remote::open </td> |
| 123 |
<td>(</td> |
| 124 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>program</em></span>, </td> |
| 125 |
</tr> |
| 126 |
<tr> |
| 127 |
<td class="paramkey"></td> |
| 128 |
<td></td> |
| 129 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>args</em></span>, </td> |
| 130 |
</tr> |
| 131 |
<tr> |
| 132 |
<td class="paramkey"></td> |
| 133 |
<td></td> |
| 134 |
<td class="paramtype">useconds_t</td> <td class="paramname"><span class="paramname"><em>timeout</em></span><span class="paramdefsep"> = </span><span class="paramdefval">10000</span> )</td> |
| 135 |
</tr> |
| 136 |
</table> |
| 137 |
</div><div class="memdoc"> |
| 138 |
|
| 139 |
<p>Construct a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object for read-only access to a remote database accessed via a program. </p> |
| 140 |
<p>Access to the remote database is done by running an external program and communicating with it on stdin/stdout.</p> |
| 141 |
<dl class="params"><dt>Parameters</dt><dd> |
| 142 |
<table class="params"> |
| 143 |
<tr><td class="paramname">program</td><td>the external program to run. </td></tr> |
| 144 |
<tr><td class="paramname">args</td><td>space-separated list of arguments to pass to program. </td></tr> |
| 145 |
<tr><td class="paramname">timeout</td><td>timeout in milliseconds. If this timeout is exceeded for any individual operation on the remote database then <a class="el" href="classXapian_1_1NetworkTimeoutError.html" title="Indicates a timeout expired while communicating with a remote database.">Xapian::NetworkTimeoutError</a> is thrown. A timeout of 0 means don't timeout. (Default is 10000ms, which is 10 seconds). </td></tr> |
| 146 |
</table> |
| 147 |
</dd> |
| 148 |
</dl> |
| 149 |
|
| 150 |
</div> |
| 151 |
</div> |
| 152 |
<a id="a84deed0508be12e092e63c0e5beb90d3" name="a84deed0508be12e092e63c0e5beb90d3"></a> |
| 153 |
<h2 class="memtitle"><span class="permalink"><a href="#a84deed0508be12e092e63c0e5beb90d3">◆ </a></span>open_writable() <span class="overload">[1/2]</span></h2> |
| 154 |
|
| 155 |
<div class="memitem"> |
| 156 |
<div class="memproto"> |
| 157 |
<table class="memname"> |
| 158 |
<tr> |
| 159 |
<td class="memname"><a class="el" href="classXapian_1_1WritableDatabase.html">WritableDatabase</a> Xapian::Remote::open_writable </td> |
| 160 |
<td>(</td> |
| 161 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>host</em></span>, </td> |
| 162 |
</tr> |
| 163 |
<tr> |
| 164 |
<td class="paramkey"></td> |
| 165 |
<td></td> |
| 166 |
<td class="paramtype">unsigned int</td> <td class="paramname"><span class="paramname"><em>port</em></span>, </td> |
| 167 |
</tr> |
| 168 |
<tr> |
| 169 |
<td class="paramkey"></td> |
| 170 |
<td></td> |
| 171 |
<td class="paramtype">useconds_t</td> <td class="paramname"><span class="paramname"><em>timeout</em></span><span class="paramdefsep"> = </span><span class="paramdefval">0</span>, </td> |
| 172 |
</tr> |
| 173 |
<tr> |
| 174 |
<td class="paramkey"></td> |
| 175 |
<td></td> |
| 176 |
<td class="paramtype">useconds_t</td> <td class="paramname"><span class="paramname"><em>connect_timeout</em></span><span class="paramdefsep"> = </span><span class="paramdefval">10000</span>, </td> |
| 177 |
</tr> |
| 178 |
<tr> |
| 179 |
<td class="paramkey"></td> |
| 180 |
<td></td> |
| 181 |
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>flags</em></span><span class="paramdefsep"> = </span><span class="paramdefval">0</span> )</td> |
| 182 |
</tr> |
| 183 |
</table> |
| 184 |
</div><div class="memdoc"> |
| 185 |
|
| 186 |
<p>Construct a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object for update access to a remote database accessed via a TCP connection. </p> |
| 187 |
<p>Access to the remote database is via a TCP connection to the specified host and port.</p> |
| 188 |
<dl class="params"><dt>Parameters</dt><dd> |
| 189 |
<table class="params"> |
| 190 |
<tr><td class="paramname">host</td><td>hostname to connect to. </td></tr> |
| 191 |
<tr><td class="paramname">port</td><td>port number to connect to. </td></tr> |
| 192 |
<tr><td class="paramname">timeout</td><td>timeout in milliseconds. If this timeout is exceeded for any individual operation on the remote database then <a class="el" href="classXapian_1_1NetworkTimeoutError.html" title="Indicates a timeout expired while communicating with a remote database.">Xapian::NetworkTimeoutError</a> is thrown. (Default is 0, which means don't timeout). </td></tr> |
| 193 |
<tr><td class="paramname">connect_timeout</td><td>timeout to use when connecting to the server. If this timeout is exceeded then <a class="el" href="classXapian_1_1NetworkTimeoutError.html" title="Indicates a timeout expired while communicating with a remote database.">Xapian::NetworkTimeoutError</a> is thrown. A timeout of 0 means don't timeout. (Default is 10000ms, which is 10 seconds). </td></tr> |
| 194 |
<tr><td class="paramname">flags</td><td><a class="el" href="namespaceXapian.html#a296fe000d6d9525bb8e80f72838026a6" title="If the database is already locked, retry the lock.">Xapian::DB_RETRY_LOCK</a> or 0. </td></tr> |
| 195 |
</table> |
| 196 |
</dd> |
| 197 |
</dl> |
| 198 |
|
| 199 |
</div> |
| 200 |
</div> |
| 201 |
<a id="adc7fd4a5c6b738dc83097347f0d760e9" name="adc7fd4a5c6b738dc83097347f0d760e9"></a> |
| 202 |
<h2 class="memtitle"><span class="permalink"><a href="#adc7fd4a5c6b738dc83097347f0d760e9">◆ </a></span>open_writable() <span class="overload">[2/2]</span></h2> |
| 203 |
|
| 204 |
<div class="memitem"> |
| 205 |
<div class="memproto"> |
| 206 |
<table class="memname"> |
| 207 |
<tr> |
| 208 |
<td class="memname"><a class="el" href="classXapian_1_1WritableDatabase.html">WritableDatabase</a> Xapian::Remote::open_writable </td> |
| 209 |
<td>(</td> |
| 210 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>program</em></span>, </td> |
| 211 |
</tr> |
| 212 |
<tr> |
| 213 |
<td class="paramkey"></td> |
| 214 |
<td></td> |
| 215 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>args</em></span>, </td> |
| 216 |
</tr> |
| 217 |
<tr> |
| 218 |
<td class="paramkey"></td> |
| 219 |
<td></td> |
| 220 |
<td class="paramtype">useconds_t</td> <td class="paramname"><span class="paramname"><em>timeout</em></span><span class="paramdefsep"> = </span><span class="paramdefval">0</span>, </td> |
| 221 |
</tr> |
| 222 |
<tr> |
| 223 |
<td class="paramkey"></td> |
| 224 |
<td></td> |
| 225 |
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>flags</em></span><span class="paramdefsep"> = </span><span class="paramdefval">0</span> )</td> |
| 226 |
</tr> |
| 227 |
</table> |
| 228 |
</div><div class="memdoc"> |
| 229 |
|
| 230 |
<p>Construct a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object for update access to a remote database accessed via a program. </p> |
| 231 |
<p>Access to the remote database is done by running an external program and communicating with it on stdin/stdout.</p> |
| 232 |
<dl class="params"><dt>Parameters</dt><dd> |
| 233 |
<table class="params"> |
| 234 |
<tr><td class="paramname">program</td><td>the external program to run. </td></tr> |
| 235 |
<tr><td class="paramname">args</td><td>space-separated list of arguments to pass to program. </td></tr> |
| 236 |
<tr><td class="paramname">timeout</td><td>timeout in milliseconds. If this timeout is exceeded for any individual operation on the remote database then <a class="el" href="classXapian_1_1NetworkTimeoutError.html" title="Indicates a timeout expired while communicating with a remote database.">Xapian::NetworkTimeoutError</a> is thrown. (Default is 0, which means don't timeout). </td></tr> |
| 237 |
<tr><td class="paramname">flags</td><td><a class="el" href="namespaceXapian.html#a296fe000d6d9525bb8e80f72838026a6" title="If the database is already locked, retry the lock.">Xapian::DB_RETRY_LOCK</a> or 0. </td></tr> |
| 238 |
</table> |
| 239 |
</dd> |
| 240 |
</dl> |
| 241 |
|
| 242 |
</div> |
| 243 |
</div> |
| 244 |
</div><!-- contents --> |
| 245 |
<!-- start footer part --> |
| 246 |
<hr class="footer"/><address class="footer"><small> |
| 247 |
Generated by <a href="https://www.doxygen.org/">Doxygen 1.15.0</a> |
| 248 |
</small></address> |
| 249 |
</body> |
| 250 |
</html> |