Greenbone Vulnerability Manager  22.4.0~dev1
gmpd.h
Go to the documentation of this file.
1 /* Copyright (C) 2009-2022 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: AGPL-3.0-or-later
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as
7  * published by the Free Software Foundation, either version 3 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU 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 
24 #ifndef _GVMD_GMPD_H
25 #define _GVMD_GMPD_H
26 
27 #include "manage.h"
28 #include "types.h"
29 
30 #include <glib.h>
31 #include <gnutls/gnutls.h>
32 #include <gvm/util/serverutils.h>
33 #include <netinet/in.h>
34 
38 #ifndef READ_PROTOCOL_TIMEOUT
39 #define READ_PROTOCOL_TIMEOUT 300
40 #endif
41 
45 #define FROM_BUFFER_SIZE 1048576
46 
47 int
48 init_gmpd (GSList *, const db_conn_info_t *, int, int, int, int,
49  manage_connection_forker_t, int);
50 
51 void
52 init_gmpd_process (const db_conn_info_t *, gchar **);
53 
54 int
55 serve_gmp (gvm_connection_t *, const db_conn_info_t *, gchar **);
56 
57 #endif /* not _GVMD_GMPD_H */
int serve_gmp(gvm_connection_t *, const db_conn_info_t *, gchar **)
Serve the Greenbone Management Protocol (GMP).
Definition: gmpd.c:455
void init_gmpd_process(const db_conn_info_t *, gchar **)
Initialise a process forked within the GMP daemon.
Definition: gmpd.c:115
int init_gmpd(GSList *, const db_conn_info_t *, int, int, int, int, manage_connection_forker_t, int)
Initialise the GMP library for the GMP daemon.
Definition: gmpd.c:97
Data structure for info used to connect to the database.
Definition: manage.h:47