Debian Codegraph @

doc/locale/en/html/spec/gqtp.html

raw symbols SCIP
1
2 <!DOCTYPE html>
3
4
5 <html lang="en" data-content_root="../" >
6
7 <head>
8 <meta charset="utf-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
10
11 <title>8.1. GQTP &#8212; Groonga v16.0.9 documentation</title>
12
13
14
15 <script data-cfasync="false">
16 document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
17 document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
18 </script>
19 <!--
20 this give us a css class that will be invisible only if js is disabled
21 -->
22 <noscript>
23 <style>
24 .pst-js-only { display: none !important; }
25
26 </style>
27 </noscript>
28
29 <!-- Loaded before other Sphinx assets -->
30 <link href="../_static/styles/theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" />
31 <link href="../_static/styles/pydata-sphinx-theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" />
32
33 <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" />
34
35 <!-- So that users can add custom icons -->
36 <script defer src="../_static/scripts/fontawesome.js?digest=90905a2f556bf617f1a9"></script>
37 <!-- Pre-loaded scripts that we'll load fully later -->
38 <link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" />
39 <link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" />
40
41 <script src="../_static/documentation_options.js?v=2fcb8d4f"></script>
42 <script src="../_static/doctools.js?v=fd6eb6e6"></script>
43 <script src="../_static/sphinx_highlight.js?v=6ffebe34"></script>
44 <script>
45 window.dataLayer = window.dataLayer || [];
46 function gtag(){ dataLayer.push(arguments); }
47 gtag('consent', 'default', {
48 'ad_storage': 'denied',
49 'ad_user_data': 'denied',
50 'ad_personalization': 'denied',
51 'analytics_storage': 'denied'
52 });
53 </script>
54 <script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-MDK38RHNPW"></script>
55 <script>
56 window.dataLayer = window.dataLayer || [];
57 function gtag(){dataLayer.push(arguments);}
58 gtag('js', new Date());
59 gtag('config', 'G-MDK38RHNPW');
60 </script>
61 <script>DOCUMENTATION_OPTIONS.pagename = 'spec/gqtp';</script>
62 <script>
63 DOCUMENTATION_OPTIONS.theme_version = '0.20.0';
64 DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://groonga.org/docs/_static/switcher.json';
65 DOCUMENTATION_OPTIONS.theme_switcher_version_match = 'english';
66 DOCUMENTATION_OPTIONS.show_version_warning_banner =
67 false;
68 </script>
69 <script>DOCUMENTATION_OPTIONS.search_as_you_type = false;</script>
70 <link rel="icon" href="../_static/favicon.ico"/>
71 <link rel="index" title="Index" href="../genindex.html" />
72 <link rel="search" title="Search" href="../search.html" />
73 <link rel="next" title="8.2. 検索" href="search.html" />
74 <link rel="prev" title="8. Specification" href="../spec.html" />
75 <meta name="viewport" content="width=device-width, initial-scale=1"/>
76 <meta name="docsearch:language" content="en"/>
77 <meta name="docsearch:version" content="16.0.9" />
78
79
80 <script src="../_static/searchtools.js"></script>
81 <script src="../_static/language_data.js"></script>
82 <script src="../searchindex.js"></script>
83
84 </head>
85 <body data-default-mode="">
86
87
88 <div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
89
90
91 <div id="pst-scroll-pixel-helper"></div>
92
93 <button type="button" class="btn rounded-pill" id="pst-back-to-top">
94 <i class="fa-solid fa-arrow-up"></i>Back to top</button>
95
96
97
98
99 <dialog id="pst-search-dialog">
100
101 <form class="bd-search d-flex align-items-center"
102 action="../search.html"
103 method="get">
104 <i class="fa-solid fa-magnifying-glass"></i>
105 <input type="search"
106 class="form-control"
107 name="q"
108 placeholder="Search the docs ..."
109 aria-label="Search the docs ..."
110 autocomplete="off"
111 autocorrect="off"
112 autocapitalize="off"
113 spellcheck="false"/>
114 <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
115 </form>
116 </dialog>
117
118 <div class="pst-async-banner-revealer d-none">
119 <aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
120 </div>
121
122
123 <header id="pst-header" class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
124 <div class="bd-header__inner bd-page-width">
125 <button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation">
126 <span class="fa-solid fa-bars"></span>
127 </button>
128
129
130 <div class="col-lg-3 navbar-header-items__start">
131
132 <div class="navbar-item">
133
134
135
136
137
138 <a class="navbar-brand logo" href="https://groonga.org/">
139
140
141
142
143
144
145
146
147
148
149 <img src="../_static/groonga.png" class="logo__image only-light" alt="Groonga v16.0.9 documentation - Home"/>
150 <img src="../_static/groonga.png" class="logo__image only-dark pst-js-only" alt="Groonga v16.0.9 documentation - Home"/>
151
152
153 </a></div>
154
155 </div>
156
157 <div class="col-lg-9 navbar-header-items">
158
159
160 <div class="navbar-header-items__end">
161
162 <div class="navbar-item navbar-persistent--container">
163
164
165 <button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
166 <i class="fa-solid fa-magnifying-glass"></i>
167 <span class="search-button__default-text">Search</span>
168 <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
169 </button>
170 </div>
171
172
173 <div class="navbar-item">
174
175 <div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode">
176 <button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown">
177 <i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i>
178 <i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i>
179 <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i>
180 </button>
181 <ul class="dropdown-menu dropdown-menu-end">
182 <li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li>
183 <li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li>
184 <li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li>
185 </ul>
186 </div></div>
187
188 <div class="navbar-item"><ul class="navbar-icon-links"
189 aria-label="Icon Links">
190 <li class="nav-item">
191
192
193
194
195
196
197
198
199 <a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a>
200 </li>
201 <li class="nav-item">
202
203
204
205
206
207
208
209
210 <a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a>
211 </li>
212 <li class="nav-item">
213
214
215
216
217
218
219
220
221 <a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a>
222 </li>
223 </ul></div>
224
225 <div class="navbar-item">
226 <div class="version-switcher__container dropdown pst-js-only">
227 <button id="pst-version-switcher-button-2"
228 type="button"
229 class="version-switcher__button btn btn-sm dropdown-toggle"
230 data-bs-toggle="dropdown"
231 aria-haspopup="listbox"
232 aria-controls="pst-version-switcher-list-2"
233 aria-label="Version switcher list"
234 >
235 Choose version <!-- this text may get changed later by javascript -->
236 <span class="caret"></span>
237 </button>
238 <div id="pst-version-switcher-list-2"
239 class="version-switcher__menu dropdown-menu list-group-flush py-0"
240 role="listbox" aria-labelledby="pst-version-switcher-button-2">
241 <!-- dropdown will be populated by javascript on page load -->
242 </div>
243 </div></div>
244
245 </div>
246
247 </div>
248
249
250 <div class="navbar-persistent--mobile">
251
252 <button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
253 <i class="fa-solid fa-magnifying-glass"></i>
254 <span class="search-button__default-text">Search</span>
255 <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
256 </button>
257 </div>
258
259
260
261 <button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page">
262 <span class="fa-solid fa-outdent"></span>
263 </button>
264
265 </div>
266
267 </header>
268
269
270 <div class="bd-container">
271 <div class="bd-container__inner bd-page-width">
272
273
274
275 <dialog id="pst-primary-sidebar-modal"></dialog>
276 <div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
277
278
279
280 <div class="sidebar-header-items sidebar-primary__section">
281
282
283
284
285 <div class="sidebar-header-items__end">
286
287 <div class="navbar-item">
288
289 <div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode">
290 <button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown">
291 <i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i>
292 <i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i>
293 <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i>
294 </button>
295 <ul class="dropdown-menu dropdown-menu-end">
296 <li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li>
297 <li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li>
298 <li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li>
299 </ul>
300 </div></div>
301
302 <div class="navbar-item"><ul class="navbar-icon-links"
303 aria-label="Icon Links">
304 <li class="nav-item">
305
306
307
308
309
310
311
312
313 <a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a>
314 </li>
315 <li class="nav-item">
316
317
318
319
320
321
322
323
324 <a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a>
325 </li>
326 <li class="nav-item">
327
328
329
330
331
332
333
334
335 <a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a>
336 </li>
337 </ul></div>
338
339 <div class="navbar-item">
340 <div class="version-switcher__container dropdown pst-js-only">
341 <button id="pst-version-switcher-button-3"
342 type="button"
343 class="version-switcher__button btn btn-sm dropdown-toggle"
344 data-bs-toggle="dropdown"
345 aria-haspopup="listbox"
346 aria-controls="pst-version-switcher-list-3"
347 aria-label="Version switcher list"
348 >
349 Choose version <!-- this text may get changed later by javascript -->
350 <span class="caret"></span>
351 </button>
352 <div id="pst-version-switcher-list-3"
353 class="version-switcher__menu dropdown-menu list-group-flush py-0"
354 role="listbox" aria-labelledby="pst-version-switcher-button-3">
355 <!-- dropdown will be populated by javascript on page load -->
356 </div>
357 </div></div>
358
359 </div>
360
361 </div>
362
363 <div class="sidebar-primary-items__start sidebar-primary__section">
364 <div class="sidebar-primary-item pst-sidebar-collapse"><button id="pst-collapse-sidebar-button" aria-expanded="true" aria-controls="pst-primary-sidebar">
365 <svg class="pst-icon" role="img" aria-hidden="true" focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
366 <path fill="currentColor" d="M3 15.5C2.36232 15.5 1.74874 15.2564 1.28478 14.8189C0.820828 14.3815 0.541576 13.7832 0.504167 13.1467L0.5 13L0.5 3C0.499965 2.36232 0.743605 1.74874 1.18107 1.28478C1.61854 0.820828 2.21676 0.541576 2.85333 0.504167L3 0.5L13 0.5C13.6377 0.499965 14.2513 0.743605 14.7152 1.18107C15.1792 1.61854 15.4584 2.21676 15.4958 2.85333L15.5 3L15.5 13C15.5 13.6377 15.2564 14.2513 14.8189 14.7152C14.3815 15.1792 13.7832 15.4584 13.1467 15.4958L13 15.5L3 15.5ZM3 13.8333L10.5 13.8333L10.5 2.16667L3 2.16667C2.79589 2.16669 2.59889 2.24163 2.44636 2.37726C2.29383 2.5129 2.19638 2.69979 2.1725 2.9025L2.16667 3L2.16667 13C2.16669 13.2041 2.24163 13.4011 2.37726 13.5536C2.5129 13.7062 2.69979 13.8036 2.9025 13.8275L3 13.8333ZM6.65583 10.325L6.5775 10.2558L4.91083 8.58917C4.76735 8.44567 4.68116 8.25476 4.66843 8.05223C4.65569 7.84971 4.71729 7.6495 4.84167 7.48917L4.91083 7.41083L6.5775 5.74417C6.72747 5.59471 6.9287 5.50794 7.14032 5.50148C7.35194 5.49502 7.55809 5.56935 7.7169 5.70937C7.8757 5.8494 7.97525 6.04463 7.99533 6.25539C8.01541 6.46616 7.95451 6.67667 7.825 6.84417L7.75583 6.9225L6.67917 8L7.75583 9.0775C7.89931 9.22099 7.98551 9.41191 7.99824 9.61443C8.01097 9.81695 7.94938 10.0172 7.825 10.1775L7.75583 10.2558C7.61234 10.3993 7.42142 10.4855 7.2189 10.4982C7.01638 10.511 6.81617 10.4494 6.65583 10.325Z"/>
367 </svg>
368 <span class="pst-collapse-sidebar-label">Collapse Sidebar</span>
369 <span class="pst-expand-sidebar-label">Expand Sidebar</span>
370 </button></div>
371 <div class="sidebar-primary-item">
372
373 <nav class="bd-docs-nav bd-links"
374 aria-label="Section Navigation">
375 <p class="bd-links__title" role="heading" aria-level="1">Section Navigation</p>
376 <div class="bd-toc-item navbar-nav"><ul class="current nav bd-sidenav">
377 <li class="toctree-l1 current active"><a class="current reference internal" href="#">8.1. GQTP</a></li>
378 <li class="toctree-l1"><a class="reference internal" href="search.html">8.2. 検索</a></li>
379 </ul>
380 </div>
381 </nav></div>
382 </div>
383
384
385 <div class="sidebar-primary-items__end sidebar-primary__section">
386 <div class="sidebar-primary-item">
387 <div id="ethical-ad-placement"
388 class="flat"
389 data-ea-publisher="readthedocs"
390 data-ea-type="readthedocs-sidebar"
391 data-ea-manual="true">
392 </div></div>
393 </div>
394
395
396 </div>
397
398 <main id="main-content" class="bd-main" role="main">
399
400
401 <div class="bd-content">
402 <div class="bd-article-container">
403
404 <div class="bd-header-article d-print-none">
405 <div class="header-article-items header-article__inner">
406
407 <div class="header-article-items__start">
408
409 <div class="header-article-item">
410
411 <nav aria-label="Breadcrumb" class="d-print-none">
412 <ul class="bd-breadcrumbs">
413
414 <li class="breadcrumb-item breadcrumb-home">
415 <a href="../index.html" class="nav-link" aria-label="Home">
416 <i class="fa-solid fa-home"></i>
417 </a>
418 </li>
419
420 <li class="breadcrumb-item"><a href="../spec.html" class="nav-link"><span class="section-number">8. </span>Specification</a></li>
421
422 <li class="breadcrumb-item active" aria-current="page"><span class="ellipsis"><span class="section-number">8.1. </span>GQTP</span></li>
423 </ul>
424 </nav>
425 </div>
426
427 </div>
428
429
430 </div>
431 </div>
432
433
434
435
436 <div id="searchbox"></div>
437 <article class="bd-article">
438
439 <section id="gqtp">
440 <h1><span class="section-number">8.1. </span>GQTP<a class="headerlink" href="#gqtp" title="Link to this heading">#</a></h1>
441 <p>GQTP is the acronym of Groonga Query Transfer Protocol. GQTP is the
442 original protocol for groonga.</p>
443 <section id="protocol">
444 <h2><span class="section-number">8.1.1. </span>Protocol<a class="headerlink" href="#protocol" title="Link to this heading">#</a></h2>
445 <p>GQTP is stateful client server model protocol. The following sequence
446 is one processing unit:</p>
447 <ul class="simple">
448 <li><p>Client sends a request</p></li>
449 <li><p>Server receives the request</p></li>
450 <li><p>Server processes the request</p></li>
451 <li><p>Server sends a response</p></li>
452 <li><p>Client receives the response</p></li>
453 </ul>
454 <p>You can do zero or more processing units in a session.</p>
455 <p>Both request and response consist of GQTP header and body. GQTP header
456 is fixed size data. Body is variable size data and its size is stored
457 in GQTP header. The content of body isn’t defined in GQTP.</p>
458 <section id="gqtp-header">
459 <span id="gqtp-header-spec"></span><h3><span class="section-number">8.1.1.1. </span>GQTP header<a class="headerlink" href="#gqtp-header" title="Link to this heading">#</a></h3>
460 <p>GQTP header consists of the following unsigned integer values:</p>
461 <div class="pst-scrollable-table-container"><table class="table">
462 <thead>
463 <tr class="row-odd"><th class="head"><p>Name</p></th>
464 <th class="head"><p>Size</p></th>
465 <th class="head"><p>Description</p></th>
466 </tr>
467 </thead>
468 <tbody>
469 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">protocol</span></code></p></td>
470 <td><p>1byte</p></td>
471 <td><p>Protocol type.</p></td>
472 </tr>
473 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">query_type</span></code></p></td>
474 <td><p>1byte</p></td>
475 <td><p>Content type of body.</p></td>
476 </tr>
477 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">key_length</span></code></p></td>
478 <td><p>2byte</p></td>
479 <td><p>Not used.</p></td>
480 </tr>
481 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">level</span></code></p></td>
482 <td><p>1byte</p></td>
483 <td><p>Not used.</p></td>
484 </tr>
485 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">flags</span></code></p></td>
486 <td><p>1byte</p></td>
487 <td><p>Flags.</p></td>
488 </tr>
489 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">status</span></code></p></td>
490 <td><p>2byte</p></td>
491 <td><p>Return code.</p></td>
492 </tr>
493 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">size</span></code></p></td>
494 <td><p>4byte</p></td>
495 <td><p>Body size.</p></td>
496 </tr>
497 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">opaque</span></code></p></td>
498 <td><p>4byte</p></td>
499 <td><p>Not used.</p></td>
500 </tr>
501 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">cas</span></code></p></td>
502 <td><p>8byte</p></td>
503 <td><p>Not used.</p></td>
504 </tr>
505 </tbody>
506 </table>
507 </div>
508 <p>All header values are encoded by network byte order.</p>
509 <p>The following sections describes available values of each header value.</p>
510 <p>The total size of GQTP header is 24byte.</p>
511 <section id="id1">
512 <h4><span class="section-number">8.1.1.1.1. </span><code class="docutils literal notranslate"><span class="pre">protocol</span></code><a class="headerlink" href="#id1" title="Link to this heading">#</a></h4>
513 <p>The value is always <code class="docutils literal notranslate"><span class="pre">0xc7</span></code> in both request and response GQTP header.</p>
514 </section>
515 <section id="query-type">
516 <h4><span class="section-number">8.1.1.1.2. </span><code class="docutils literal notranslate"><span class="pre">query_type</span></code><a class="headerlink" href="#query-type" title="Link to this heading">#</a></h4>
517 <p>The value is one of the following values:</p>
518 <div class="pst-scrollable-table-container"><table class="table">
519 <thead>
520 <tr class="row-odd"><th class="head"><p>Name</p></th>
521 <th class="head"><p>Value</p></th>
522 <th class="head"><p>Description</p></th>
523 </tr>
524 </thead>
525 <tbody>
526 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">NONE</span></code></p></td>
527 <td><p>0</p></td>
528 <td><p>Free format.</p></td>
529 </tr>
530 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">TSV</span></code></p></td>
531 <td><p>1</p></td>
532 <td><p>Tab Separated Values.</p></td>
533 </tr>
534 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">JSON</span></code></p></td>
535 <td><p>2</p></td>
536 <td><p>JSON.</p></td>
537 </tr>
538 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">XML</span></code></p></td>
539 <td><p>3</p></td>
540 <td><p>XML.</p></td>
541 </tr>
542 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">MSGPACK</span></code></p></td>
543 <td><p>4</p></td>
544 <td><p>MessagePack.</p></td>
545 </tr>
546 </tbody>
547 </table>
548 </div>
549 <p>This is not used in request GQTP header.</p>
550 <p>This is used in response GQTP header. Body is formatted as specified
551 type.</p>
552 </section>
553 <section id="flags">
554 <h4><span class="section-number">8.1.1.1.3. </span><code class="docutils literal notranslate"><span class="pre">flags</span></code><a class="headerlink" href="#flags" title="Link to this heading">#</a></h4>
555 <p>The value is bitwise OR of the following values:</p>
556 <div class="pst-scrollable-table-container"><table class="table">
557 <thead>
558 <tr class="row-odd"><th class="head"><p>Name</p></th>
559 <th class="head"><p>Value</p></th>
560 <th class="head"><p>Description</p></th>
561 </tr>
562 </thead>
563 <tbody>
564 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">MORE</span></code></p></td>
565 <td><p>0x01</p></td>
566 <td><p>There are more data.</p></td>
567 </tr>
568 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">TAIL</span></code></p></td>
569 <td><p>0x02</p></td>
570 <td><p>There are no more data.</p></td>
571 </tr>
572 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">HEAD</span></code></p></td>
573 <td><p>0x04</p></td>
574 <td><p>Not used.</p></td>
575 </tr>
576 <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">QUIET</span></code></p></td>
577 <td><p>0x08</p></td>
578 <td><p>Be quiet.</p></td>
579 </tr>
580 <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">QUIT</span></code></p></td>
581 <td><p>0x10</p></td>
582 <td><p>Quit.</p></td>
583 </tr>
584 </tbody>
585 </table>
586 </div>
587 <p>You must specify <code class="docutils literal notranslate"><span class="pre">MORE</span></code> or <code class="docutils literal notranslate"><span class="pre">TAIL</span></code> flag.</p>
588 <p>If you use <code class="docutils literal notranslate"><span class="pre">MORE</span></code> flag, you should also use <code class="docutils literal notranslate"><span class="pre">QUIET</span></code> flag. Because
589 you don’t need to show a response for your partial request.</p>
590 <p>Use <code class="docutils literal notranslate"><span class="pre">QUIT</span></code> flag to quit this session.</p>
591 </section>
592 <section id="status">
593 <h4><span class="section-number">8.1.1.1.4. </span><code class="docutils literal notranslate"><span class="pre">status</span></code><a class="headerlink" href="#status" title="Link to this heading">#</a></h4>
594 <p>Here are available values. The new statuses will be added in the
595 future.</p>
596 <ul class="simple">
597 <li><p>0: <code class="docutils literal notranslate"><span class="pre">SUCCESS</span></code></p></li>
598 <li><p>1: <code class="docutils literal notranslate"><span class="pre">END_OF_DATA</span></code></p></li>
599 <li><p>65535: <code class="docutils literal notranslate"><span class="pre">UNKNOWN_ERROR</span></code></p></li>
600 <li><p>65534: <code class="docutils literal notranslate"><span class="pre">OPERATION_NOT_PERMITTED</span></code></p></li>
601 <li><p>65533: <code class="docutils literal notranslate"><span class="pre">NO_SUCH_FILE_OR_DIRECTORY</span></code></p></li>
602 <li><p>65532: <code class="docutils literal notranslate"><span class="pre">NO_SUCH_PROCESS</span></code></p></li>
603 <li><p>65531: <code class="docutils literal notranslate"><span class="pre">INTERRUPTED_FUNCTION_CALL</span></code></p></li>
604 <li><p>65530: <code class="docutils literal notranslate"><span class="pre">INPUT_OUTPUT_ERROR</span></code></p></li>
605 <li><p>65529: <code class="docutils literal notranslate"><span class="pre">NO_SUCH_DEVICE_OR_ADDRESS</span></code></p></li>
606 <li><p>65528: <code class="docutils literal notranslate"><span class="pre">ARG_LIST_TOO_LONG</span></code></p></li>
607 <li><p>65527: <code class="docutils literal notranslate"><span class="pre">EXEC_FORMAT_ERROR</span></code></p></li>
608 <li><p>65526: <code class="docutils literal notranslate"><span class="pre">BAD_FILE_DESCRIPTOR</span></code></p></li>
609 <li><p>65525: <code class="docutils literal notranslate"><span class="pre">NO_CHILD_PROCESSES</span></code></p></li>
610 <li><p>65524: <code class="docutils literal notranslate"><span class="pre">RESOURCE_TEMPORARILY_UNAVAILABLE</span></code></p></li>
611 <li><p>65523: <code class="docutils literal notranslate"><span class="pre">NOT_ENOUGH_SPACE</span></code></p></li>
612 <li><p>65522: <code class="docutils literal notranslate"><span class="pre">PERMISSION_DENIED</span></code></p></li>
613 <li><p>65521: <code class="docutils literal notranslate"><span class="pre">BAD_ADDRESS</span></code></p></li>
614 <li><p>65520: <code class="docutils literal notranslate"><span class="pre">RESOURCE_BUSY</span></code></p></li>
615 <li><p>65519: <code class="docutils literal notranslate"><span class="pre">FILE_EXISTS</span></code></p></li>
616 <li><p>65518: <code class="docutils literal notranslate"><span class="pre">IMPROPER_LINK</span></code></p></li>
617 <li><p>65517: <code class="docutils literal notranslate"><span class="pre">NO_SUCH_DEVICE</span></code></p></li>
618 <li><p>65516: <code class="docutils literal notranslate"><span class="pre">NOT_A_DIRECTORY</span></code></p></li>
619 <li><p>65515: <code class="docutils literal notranslate"><span class="pre">IS_A_DIRECTORY</span></code></p></li>
620 <li><p>65514: <code class="docutils literal notranslate"><span class="pre">INVALID_ARGUMENT</span></code></p></li>
621 <li><p>65513: <code class="docutils literal notranslate"><span class="pre">TOO_MANY_OPEN_FILES_IN_SYSTEM</span></code></p></li>
622 <li><p>65512: <code class="docutils literal notranslate"><span class="pre">TOO_MANY_OPEN_FILES</span></code></p></li>
623 <li><p>65511: <code class="docutils literal notranslate"><span class="pre">INAPPROPRIATE_I_O_CONTROL_OPERATION</span></code></p></li>
624 <li><p>65510: <code class="docutils literal notranslate"><span class="pre">FILE_TOO_LARGE</span></code></p></li>
625 <li><p>65509: <code class="docutils literal notranslate"><span class="pre">NO_SPACE_LEFT_ON_DEVICE</span></code></p></li>
626 <li><p>65508: <code class="docutils literal notranslate"><span class="pre">INVALID_SEEK</span></code></p></li>
627 <li><p>65507: <code class="docutils literal notranslate"><span class="pre">READ_ONLY_FILE_SYSTEM</span></code></p></li>
628 <li><p>65506: <code class="docutils literal notranslate"><span class="pre">TOO_MANY_LINKS</span></code></p></li>
629 <li><p>65505: <code class="docutils literal notranslate"><span class="pre">BROKEN_PIPE</span></code></p></li>
630 <li><p>65504: <code class="docutils literal notranslate"><span class="pre">DOMAIN_ERROR</span></code></p></li>
631 <li><p>65503: <code class="docutils literal notranslate"><span class="pre">RESULT_TOO_LARGE</span></code></p></li>
632 <li><p>65502: <code class="docutils literal notranslate"><span class="pre">RESOURCE_DEADLOCK_AVOIDED</span></code></p></li>
633 <li><p>65501: <code class="docutils literal notranslate"><span class="pre">NO_MEMORY_AVAILABLE</span></code></p></li>
634 <li><p>65500: <code class="docutils literal notranslate"><span class="pre">FILENAME_TOO_LONG</span></code></p></li>
635 <li><p>65499: <code class="docutils literal notranslate"><span class="pre">NO_LOCKS_AVAILABLE</span></code></p></li>
636 <li><p>65498: <code class="docutils literal notranslate"><span class="pre">FUNCTION_NOT_IMPLEMENTED</span></code></p></li>
637 <li><p>65497: <code class="docutils literal notranslate"><span class="pre">DIRECTORY_NOT_EMPTY</span></code></p></li>
638 <li><p>65496: <code class="docutils literal notranslate"><span class="pre">ILLEGAL_BYTE_SEQUENCE</span></code></p></li>
639 <li><p>65495: <code class="docutils literal notranslate"><span class="pre">SOCKET_NOT_INITIALIZED</span></code></p></li>
640 <li><p>65494: <code class="docutils literal notranslate"><span class="pre">OPERATION_WOULD_BLOCK</span></code></p></li>
641 <li><p>65493: <code class="docutils literal notranslate"><span class="pre">ADDRESS_IS_NOT_AVAILABLE</span></code></p></li>
642 <li><p>65492: <code class="docutils literal notranslate"><span class="pre">NETWORK_IS_DOWN</span></code></p></li>
643 <li><p>65491: <code class="docutils literal notranslate"><span class="pre">NO_BUFFER</span></code></p></li>
644 <li><p>65490: <code class="docutils literal notranslate"><span class="pre">SOCKET_IS_ALREADY_CONNECTED</span></code></p></li>
645 <li><p>65489: <code class="docutils literal notranslate"><span class="pre">SOCKET_IS_NOT_CONNECTED</span></code></p></li>
646 <li><p>65488: <code class="docutils literal notranslate"><span class="pre">SOCKET_IS_ALREADY_SHUTDOWNED</span></code></p></li>
647 <li><p>65487: <code class="docutils literal notranslate"><span class="pre">OPERATION_TIMEOUT</span></code></p></li>
648 <li><p>65486: <code class="docutils literal notranslate"><span class="pre">CONNECTION_REFUSED</span></code></p></li>
649 <li><p>65485: <code class="docutils literal notranslate"><span class="pre">RANGE_ERROR</span></code></p></li>
650 <li><p>65484: <code class="docutils literal notranslate"><span class="pre">TOKENIZER_ERROR</span></code></p></li>
651 <li><p>65483: <code class="docutils literal notranslate"><span class="pre">FILE_CORRUPT</span></code></p></li>
652 <li><p>65482: <code class="docutils literal notranslate"><span class="pre">INVALID_FORMAT</span></code></p></li>
653 <li><p>65481: <code class="docutils literal notranslate"><span class="pre">OBJECT_CORRUPT</span></code></p></li>
654 <li><p>65480: <code class="docutils literal notranslate"><span class="pre">TOO_MANY_SYMBOLIC_LINKS</span></code></p></li>
655 <li><p>65479: <code class="docutils literal notranslate"><span class="pre">NOT_SOCKET</span></code></p></li>
656 <li><p>65478: <code class="docutils literal notranslate"><span class="pre">OPERATION_NOT_SUPPORTED</span></code></p></li>
657 <li><p>65477: <code class="docutils literal notranslate"><span class="pre">ADDRESS_IS_IN_USE</span></code></p></li>
658 <li><p>65476: <code class="docutils literal notranslate"><span class="pre">ZLIB_ERROR</span></code></p></li>
659 <li><p>65475: <code class="docutils literal notranslate"><span class="pre">LZO_ERROR</span></code></p></li>
660 <li><p>65474: <code class="docutils literal notranslate"><span class="pre">STACK_OVER_FLOW</span></code></p></li>
661 <li><p>65473: <code class="docutils literal notranslate"><span class="pre">SYNTAX_ERROR</span></code></p></li>
662 <li><p>65472: <code class="docutils literal notranslate"><span class="pre">RETRY_MAX</span></code></p></li>
663 <li><p>65471: <code class="docutils literal notranslate"><span class="pre">INCOMPATIBLE_FILE_FORMAT</span></code></p></li>
664 <li><p>65470: <code class="docutils literal notranslate"><span class="pre">UPDATE_NOT_ALLOWED</span></code></p></li>
665 <li><p>65469: <code class="docutils literal notranslate"><span class="pre">TOO_SMALL_OFFSET</span></code></p></li>
666 <li><p>65468: <code class="docutils literal notranslate"><span class="pre">TOO_LARGE_OFFSET</span></code></p></li>
667 <li><p>65467: <code class="docutils literal notranslate"><span class="pre">TOO_SMALL_LIMIT</span></code></p></li>
668 <li><p>65466: <code class="docutils literal notranslate"><span class="pre">CAS_ERROR</span></code></p></li>
669 <li><p>65465: <code class="docutils literal notranslate"><span class="pre">UNSUPPORTED_COMMAND_VERSION</span></code></p></li>
670 </ul>
671 </section>
672 <section id="size">
673 <h4><span class="section-number">8.1.1.1.5. </span><code class="docutils literal notranslate"><span class="pre">size</span></code><a class="headerlink" href="#size" title="Link to this heading">#</a></h4>
674 <p>The size of body. The maximum body size is 4GiB because <code class="docutils literal notranslate"><span class="pre">size</span></code> is
675 4byte unsigned integer. If you want to send 4GiB or more larger data,
676 use <code class="docutils literal notranslate"><span class="pre">MORE</span></code> flag.</p>
677 </section>
678 </section>
679 </section>
680 <section id="example">
681 <h2><span class="section-number">8.1.2. </span>Example<a class="headerlink" href="#example" title="Link to this heading">#</a></h2>
682 <section id="how-to-run-a-gqtp-server">
683 <h3><span class="section-number">8.1.2.1. </span>How to run a GQTP server<a class="headerlink" href="#how-to-run-a-gqtp-server" title="Link to this heading">#</a></h3>
684 <p>Groonga has a special protocol, named Groonga Query Transfer Protocol (GQTP), for remote access to a database. The following form shows how to run Groonga as a GQTP server.</p>
685 <p>Form:</p>
686 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">groonga</span> <span class="p">[</span><span class="o">-</span><span class="n">p</span> <span class="n">PORT_NUMBER</span><span class="p">]</span> <span class="o">-</span><span class="n">s</span> <span class="n">DB_PATH</span>
687 </pre></div>
688 </div>
689 <p>The <cite>-s</cite> option specifies to run Groonga as a server. DB_PATH specifies the path of the existing database to be hosted. The <cite>-p</cite> option and its argument, PORT_NUMBER, specify the port number of the server. The default port number is 10043, which is used when you don’t specify PORT_NUMBER.</p>
690 <p>The following command runs a server that listens on the default port number. The server accepts operations to the specified database.</p>
691 <p>Execution example:</p>
692 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">groonga</span> <span class="o">-</span><span class="n">s</span> <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">groonga</span><span class="o">-</span><span class="n">databases</span><span class="o">/</span><span class="n">introduction</span><span class="o">.</span><span class="n">db</span>
693 <span class="n">Ctrl</span><span class="o">-</span><span class="n">c</span>
694 <span class="o">%</span>
695 </pre></div>
696 </div>
697 </section>
698 <section id="how-to-run-a-gqtp-daemon">
699 <h3><span class="section-number">8.1.2.2. </span>How to run a GQTP daemon<a class="headerlink" href="#how-to-run-a-gqtp-daemon" title="Link to this heading">#</a></h3>
700 <p>You can also run a GQTP server as a daemon by using the <cite>-d</cite> option, instead of the <cite>-s</cite> option.</p>
701 <p>Form:</p>
702 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">groonga</span> <span class="p">[</span><span class="o">-</span><span class="n">p</span> <span class="n">PORT_NUMBER</span><span class="p">]</span> <span class="o">-</span><span class="n">d</span> <span class="n">DB_PATH</span>
703 </pre></div>
704 </div>
705 <p>A Groonga daemon prints its process ID as follows. In this example, the process ID is 12345. Then, the daemon opens a specified database and accepts operations to that database.</p>
706 <p>Execution example:</p>
707 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">groonga</span> <span class="o">-</span><span class="n">d</span> <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">groonga</span><span class="o">-</span><span class="n">databases</span><span class="o">/</span><span class="n">introduction</span><span class="o">.</span><span class="n">db</span>
708 <span class="mi">12345</span>
709 <span class="o">%</span>
710 </pre></div>
711 </div>
712 </section>
713 <section id="how-to-run-a-gqtp-client">
714 <h3><span class="section-number">8.1.2.3. </span>How to run a GQTP client<a class="headerlink" href="#how-to-run-a-gqtp-client" title="Link to this heading">#</a></h3>
715 <p>You can run Groonga as a GQTP client as follows:</p>
716 <p>Form:</p>
717 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">groonga</span> <span class="p">[</span><span class="o">-</span><span class="n">p</span> <span class="n">PORT_NUMBER</span><span class="p">]</span> <span class="o">-</span><span class="n">c</span> <span class="p">[</span><span class="n">HOST_NAME_OR_IP_ADDRESS</span><span class="p">]</span>
718 </pre></div>
719 </div>
720 <p>This command establishes a connection with a GQTP server and then enters into interactive mode. HOST_NAME_OR_IP_ADDRESS specifies the hostname or the IP address of the server. If not specified, Groonga uses the default hostname “localhost”. The <cite>-p</cite> option and its argument, PORT_NUMBER, specify the port number of the server. If not specified, Groonga uses the default port number 10043.</p>
721 <p>Execution example:</p>
722 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ groonga -c
723 status
724 # [
725 # [
726 # 0,
727 # 1337566253.89858,
728 # 0.000355720520019531
729 # ],
730 # {
731 # &quot;alloc_count&quot;: 29,
732 # &quot;starttime&quot;: 1696558618,
733 # &quot;start_time&quot;: 1696558618,
734 # &quot;uptime&quot;: 0,
735 # &quot;version&quot;: &quot;2.9.1&quot;,
736 # &quot;n_queries&quot;: 0,
737 # &quot;cache_hit_rate&quot;: 0.0,
738 # &quot;command_version&quot;: 1,
739 # &quot;default_command_version&quot;: 1,
740 # &quot;max_command_version&quot;: 3,
741 # &quot;n_jobs&quot;: 0,
742 # &quot;features&quot;: {
743 # &quot;nfkc&quot;: true,
744 # &quot;mecab&quot;: true,
745 # &quot;message_pack&quot;: true,
746 # &quot;mruby&quot;: true,
747 # &quot;onigmo&quot;: true,
748 # &quot;zlib&quot;: true,
749 # &quot;lz4&quot;: true,
750 # &quot;zstandard&quot;: true,
751 # &quot;kqueue&quot;: false,
752 # &quot;epoll&quot;: true,
753 # &quot;poll&quot;: false,
754 # &quot;rapidjson&quot;: false,
755 # &quot;apache_arrow&quot;: true,
756 # &quot;xxhash&quot;: true,
757 # &quot;blosc&quot;: true,
758 # &quot;bfloat16&quot;: true,
759 # &quot;h3&quot;: true,
760 # &quot;simdjson&quot;: true,
761 # &quot;llama.cpp&quot;: true,
762 # &quot;back_trace&quot;: true,
763 # &quot;reference_count&quot;: false
764 # },
765 # &quot;apache_arrow&quot;: {
766 # &quot;version_major&quot;: 2,
767 # &quot;version_minor&quot;: 9,
768 # &quot;version_patch&quot;: 1,
769 # &quot;version&quot;: &quot;2.9.1&quot;
770 # },
771 # &quot;memory_map_size&quot;: 2929,
772 # &quot;n_workers&quot;: 0,
773 # &quot;default_n_workers&quot;: 0,
774 # &quot;os&quot;: &quot;Linux&quot;,
775 # &quot;cpu&quot;: &quot;x86_64&quot;
776 # }
777 # ]
778 &gt; ctrl-d
779 $
780 </pre></div>
781 </div>
782 <p>In interactive mode, Groonga reads commands from the standard input and executes them one by one.</p>
783 </section>
784 <section id="how-to-terminate-a-gqtp-server">
785 <h3><span class="section-number">8.1.2.4. </span>How to terminate a GQTP server<a class="headerlink" href="#how-to-terminate-a-gqtp-server" title="Link to this heading">#</a></h3>
786 <p>You can terminate a GQTP server with a <a class="reference internal" href="../reference/commands/shutdown.html"><span class="doc">shutdown</span></a> command:</p>
787 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ groonga -c
788 &gt; shutdown
789 $
790 </pre></div>
791 </div>
792 </section>
793 </section>
794 <section id="see-also">
795 <h2><span class="section-number">8.1.3. </span>See also<a class="headerlink" href="#see-also" title="Link to this heading">#</a></h2>
796 <ul class="simple">
797 <li><p><a class="reference internal" href="../reference/executables/groonga.html"><span class="doc">groonga executable file</span></a></p></li>
798 <li><p><a class="reference internal" href="../server/gqtp.html"><span class="doc">GQTP</span></a></p></li>
799 </ul>
800 </section>
801 </section>
802
803
804 </article>
805
806
807
808
809
810 <footer class="prev-next-footer d-print-none">
811
812 <div class="prev-next-area">
813 <a class="left-prev"
814 href="../spec.html"
815 title="previous page">
816 <i class="fa-solid fa-angle-left"></i>
817 <div class="prev-next-info">
818 <p class="prev-next-subtitle">previous</p>
819 <p class="prev-next-title"><span class="section-number">8. </span>Specification</p>
820 </div>
821 </a>
822 <a class="right-next"
823 href="search.html"
824 title="next page">
825 <div class="prev-next-info">
826 <p class="prev-next-subtitle">next</p>
827 <p class="prev-next-title"><span class="section-number">8.2. </span>検索</p>
828 </div>
829 <i class="fa-solid fa-angle-right"></i>
830 </a>
831 </div>
832 </footer>
833
834 </div>
835
836
837
838 <dialog id="pst-secondary-sidebar-modal"></dialog>
839 <div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
840
841
842 <div class="sidebar-secondary-item">
843 <div
844 id="pst-page-navigation-heading-2"
845 class="page-toc tocsection onthispage">
846 <i class="fa-solid fa-list"></i> On this page
847 </div>
848 <nav id="pst-page-toc-nav" class="page-toc" aria-labelledby="pst-page-navigation-heading-2">
849 <ul class="pst-show_toc_level nav section-nav flex-column">
850 <li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#protocol">8.1.1. Protocol</a><ul class="nav section-nav flex-column">
851 <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#gqtp-header">8.1.1.1. GQTP header</a><ul class="nav section-nav flex-column">
852 <li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">8.1.1.1.1. <code class="docutils literal notranslate"><span class="pre">protocol</span></code></a></li>
853 <li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#query-type">8.1.1.1.2. <code class="docutils literal notranslate"><span class="pre">query_type</span></code></a></li>
854 <li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#flags">8.1.1.1.3. <code class="docutils literal notranslate"><span class="pre">flags</span></code></a></li>
855 <li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#status">8.1.1.1.4. <code class="docutils literal notranslate"><span class="pre">status</span></code></a></li>
856 <li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#size">8.1.1.1.5. <code class="docutils literal notranslate"><span class="pre">size</span></code></a></li>
857 </ul>
858 </li>
859 </ul>
860 </li>
861 <li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#example">8.1.2. Example</a><ul class="nav section-nav flex-column">
862 <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-run-a-gqtp-server">8.1.2.1. How to run a GQTP server</a></li>
863 <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-run-a-gqtp-daemon">8.1.2.2. How to run a GQTP daemon</a></li>
864 <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-run-a-gqtp-client">8.1.2.3. How to run a GQTP client</a></li>
865 <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-terminate-a-gqtp-server">8.1.2.4. How to terminate a GQTP server</a></li>
866 </ul>
867 </li>
868 <li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#see-also">8.1.3. See also</a></li>
869 </ul>
870 </nav></div>
871
872 <div class="sidebar-secondary-item">
873
874
875 <div class="tocsection editthispage">
876 <a href="https://github.com/groonga/groonga/edit/main/doc/source/spec/gqtp.rst">
877 <i class="fa-solid fa-pencil"></i>
878
879
880
881 Edit on GitHub
882
883
884 </a>
885 </div>
886 </div>
887
888 </div></div>
889
890
891 </div>
892 <footer class="bd-footer-content">
893
894 </footer>
895
896 </main>
897 </div>
898 </div>
899
900 <!-- Scripts loaded after <body> so the DOM is not blocked -->
901 <script defer src="../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9"></script>
902 <script defer src="../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9"></script>
903
904 <footer class="bd-footer">
905 <div class="bd-footer__inner bd-page-width">
906
907 <div class="footer-items__start">
908
909 <div class="footer-item">
910
911 <p class="copyright">
912
913 © Copyright 2009-2026 Groonga Project.
914 <br/>
915
916 </p>
917 </div>
918
919 </div>
920
921
922
923 <div class="footer-items__end">
924
925 <div class="footer-item">
926 <p class="theme-version">
927 <!-- # L10n: Setting the PST URL as an argument as this does not need to be localized -->
928 Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.20.0.
929 </p></div>
930
931 </div>
932
933 </div>
934
935 </footer>
936 </body>
937 </html>