|
OpenVAS Scanner
5.1.3
|
#include <string.h>#include <stdlib.h>#include <stdarg.h>#include <glib.h>#include <openvas/nasl/nasl.h>#include <openvas/misc/nvt_categories.h>#include <openvas/misc/plugutils.h>#include <openvas/misc/network.h>#include <openvas/misc/prefs.h>#include <openvas/base/nvticache.h>#include "comm.h"#include "ntp.h"#include "log.h"#include "pluginscheduler.h"#include "pluginload.h"#include "sighand.h"#include "utils.h"
Go to the source code of this file.
Functions | |
| int | comm_init (int soc) |
| Initializes the communication between the scanner (us) and the client. More... | |
| int | comm_loading (int soc) |
| Informs the client that the scanner is still loading. More... | |
| void | comm_terminate (int soc) |
| This function must be called at the end of a session. More... | |
| void | send_plug_info (int soc, const char *oid) |
| Sends a plugin info. More... | |
| void | comm_send_pluginlist (int soc) |
| Sends the list of plugins that the scanner could load to the client,. More... | |
| void | send_plugins_preferences (int soc) |
| void | comm_send_preferences (int soc) |
| Sends the preferences of the scanner. More... | |
| int | comm_wait_order (struct arglist *globals) |
| This function waits for the attack order of the client. Meanwhile, it processes all the messages the client could send. More... | |
| void | comm_send_nvt_info (int soc) |
| Send the OTP NVT_INFO message and then handle any COMPLETE_LIST. More... | |
| int comm_init | ( | int | soc | ) |
Initializes the communication between the scanner (us) and the client.
Definition at line 57 of file comm.c.
References log_write().

| int comm_loading | ( | int | soc | ) |
Informs the client that the scanner is still loading.
| [in] | soc | Socket to send and receive from. |
Definition at line 89 of file comm.c.
References current_loading_plugins(), log_write(), and total_loading_plugins().

| void comm_send_nvt_info | ( | int | soc | ) |
Send the OTP NVT_INFO message and then handle any COMPLETE_LIST.
Definition at line 395 of file comm.c.
| void comm_send_pluginlist | ( | int | soc | ) |
Sends the list of plugins that the scanner could load to the client,.
using the OTP format (calls send_plug_info for each).
| soc | Socket to use for sending list of plugins. |
Definition at line 232 of file comm.c.
References send_plug_info(), and send_printf().

| void comm_send_preferences | ( | int | soc | ) |
Sends the preferences of the scanner.
| soc | Socket to use for sending. |
Definition at line 279 of file comm.c.
References is_scanner_only_pref(), send_plugins_preferences(), and send_printf().

| void comm_terminate | ( | int | soc | ) |
This function must be called at the end of a session.
Definition at line 146 of file comm.c.
References send_printf().

| int comm_wait_order | ( | struct arglist * | globals | ) |
This function waits for the attack order of the client. Meanwhile, it processes all the messages the client could send.
Definition at line 303 of file comm.c.
References log_write().

| void send_plug_info | ( | int | soc, |
| const char * | oid | ||
| ) |
Sends a plugin info.
Definition at line 164 of file comm.c.
References log_write(), and send_printf().
Referenced by comm_send_pluginlist().


| void send_plugins_preferences | ( | int | soc | ) |
Definition at line 248 of file comm.c.
References send_printf().
Referenced by comm_send_preferences().

