OpenVAS Scanner  6.0.0~git
comm.h
Go to the documentation of this file.
1 /* Portions Copyright (C) 2009-2019 Greenbone Networks GmbH
2  * Portions Copyright (C) 2006 Software in the Public Interest, Inc.
3  * Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
4  *
5  * SPDX-License-Identifier: GPL-2.0-only
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * version 2 as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
26 #ifndef _OPENVAS_COMM_H
27 #define _OPENVAS_COMM_H
28 
29 #include "../misc/scanneraux.h"
30 
31 int
32 comm_init (int);
33 
34 int
35 comm_loading (int);
36 
37 void
38 comm_terminate (int);
39 
40 int
41 comm_wait_order (struct scan_globals *);
42 
43 void
44 comm_send_nvt_info (int);
45 
46 void
47 send_plug_info (int, const char *);
48 
49 #endif
void comm_terminate(int)
This function must be called at the end of a session.
Definition: comm.c:151
int comm_wait_order(struct scan_globals *)
This function waits for the attack order of the client. Meanwhile, it processes all the messages the ...
Definition: comm.c:311
Definition: scanneraux.h:32
void send_plug_info(int, const char *)
Sends a plugin info.
Definition: comm.c:169
int comm_loading(int)
Informs the client that the scanner is still loading.
Definition: comm.c:94
void comm_send_nvt_info(int)
Send the OTP NVT_INFO message and then handle any COMPLETE_LIST.
Definition: comm.c:366
int comm_init(int)
Initializes the communication between the scanner (us) and the client.
Definition: comm.c:59