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 
39 
43  uint16_t compression;
44 
48  uint16_t reserved;
49 
54 
55  /* followed by 0-terminated regex as string */
56 };
57 
58 
67 
68  /* followed by 0-terminated search string */
69 };
70 
71 
75 struct ResultMessage {
79  struct GNUNET_MessageHeader header;
80 
84  uint16_t get_path_length;
85 
89  uint16_t put_path_length;
90 
95 
96  /* followed by GET path and PUT path arrays */
97 };
98 
99 
100 /* end of regex_ipc.h */
101 #endif
uint16_t compression
How many characters can we squeeze per edge?
Definition: regex_ipc.h:43
Message to initiate regex search.
Definition: regex_ipc.h:62
Result from regex search.
Definition: regex_ipc.h:75
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:89
Request for regex service to announce capability.
Definition: regex_ipc.h:34
uint16_t reserved
Always zero.
Definition: regex_ipc.h:48
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_REGEX_ANNOUNCE.
Definition: regex_ipc.h:38
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:84
Header for all communications.
struct GNUNET_TIME_RelativeNBO refresh_delay
Delay between repeated announcements.
Definition: regex_ipc.h:53