OpenVAS Scanner  6.0.0~git
Functions
comm.h File Reference

comm.c header. More...

#include "../misc/scanneraux.h"

Go to the source code of this file.

Functions

int comm_init (int)
 Initializes the communication between the scanner (us) and the client. More...
 
int comm_loading (int)
 Informs the client that the scanner is still loading. More...
 
void comm_terminate (int)
 This function must be called at the end of a session. More...
 
int comm_wait_order (struct scan_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)
 Send the OTP NVT_INFO message and then handle any COMPLETE_LIST. More...
 
void send_plug_info (int, const char *)
 Sends a plugin info. More...
 

Detailed Description

comm.c header.

Function Documentation

◆ comm_init()

int comm_init ( int  soc)

Initializes the communication between the scanner (us) and the client.

Returns
0 if success, -1 if error.

◆ comm_loading()

int comm_loading ( int  soc)

Informs the client that the scanner is still loading.

Parameters
[in]socSocket to send and receive from.
Returns
0 if success, -1 if error.

◆ comm_send_nvt_info()

void comm_send_nvt_info ( int  )

Send the OTP NVT_INFO message and then handle any COMPLETE_LIST.

◆ comm_terminate()

void comm_terminate ( int  )

This function must be called at the end of a session.

◆ comm_wait_order()

int comm_wait_order ( struct scan_globals )

This function waits for the attack order of the client. Meanwhile, it processes all the messages the client could send.

◆ send_plug_info()

void send_plug_info ( int  ,
const char *   
)

Sends a plugin info.