GNUnet  0.10.x
regex_ipc.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet
3  Copyright (C) 2012, 2013 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19 */
26 #ifndef REGEX_IPC_H
27 #define REGEX_IPC_H
28 
29 #include "gnunet_util_lib.h"
30 
35 {
36 
41 
45  uint16_t compression;
46 
50  uint16_t reserved;
51 
56 
57  /* followed by 0-terminated regex as string */
58 };
59 
60 
65 {
70 
71  /* followed by 0-terminated search string */
72 
73 };
74 
75 
80 {
84  struct GNUNET_MessageHeader header;
85 
89  uint16_t get_path_length;
90 
94  uint16_t put_path_length;
95 
100 
101  /* followed by GET path and PUT path arrays */
102 
103 };
104 
105 
106 /* end of regex_ipc.h */
107 #endif
uint16_t compression
How many characters can we squeeze per edge?
Definition: regex_ipc.h:45
Message to initiate regex search.
Definition: regex_ipc.h:64
Result from regex search.
Definition: regex_ipc.h:79
static struct GNUNET_IDENTITY_Handle * id
Handle to identity service.
Time for relative time used by GNUnet, in microseconds and in network byte order. ...
uint16_t put_path_length
Number of entries in the PUT path.
Definition: regex_ipc.h:94
Request for regex service to announce capability.
Definition: regex_ipc.h:34
uint16_t reserved
Always zero.
Definition: regex_ipc.h:50
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_REGEX_ANNOUNCE.
Definition: regex_ipc.h:40
The identity of the host (wraps the signing key of the peer).
uint16_t get_path_length
Number of entries in the GET path.
Definition: regex_ipc.h:89
Header for all communications.
struct GNUNET_TIME_RelativeNBO refresh_delay
Delay between repeated announcements.
Definition: regex_ipc.h:55