26 #ifndef OPENVAS_MANAGER_OMPD_H 27 #define OPENVAS_MANAGER_OMPD_H 30 #include <openvas/misc/openvas_server.h> 32 #include <netinet/in.h> 33 #include <gnutls/gnutls.h> 38 #ifndef READ_PROTOCOL_TIMEOUT 39 #define READ_PROTOCOL_TIMEOUT 300 45 #define FROM_BUFFER_SIZE 1048576 59 init_ompd (GSList*,
int,
const gchar*,
int,
int,
int,
int,
void (*) (),
60 int (*) (openvas_connection_t *, gchar *),
buffer_size_t to_client_end
The end of the data in the to_client buffer.
buffer_size_t from_scanner_end
The end of the data in the from_scanner buffer.
char from_client[]
Buffer of input from the client.
struct sockaddr_in scanner_address
buffer_size_t to_client_start
The start of the data in the to_client buffer.
void init_ompd_process(const gchar *, gchar **)
Initialise a process forked within the OMP daemon.
void(* progress)()
Function to mark progress.
buffer_size_t from_client_start
The start of the data in the from_client buffer.
int init_ompd(GSList *, int, const gchar *, int, int, int, int, void(*)(), int(*)(openvas_connection_t *, gchar *), int)
Initialise the OMP library for the OMP daemon.
char to_client[]
Buffer of output to the client.
int serve_omp(openvas_connection_t *, const gchar *, gchar **, void(*progress)())
Serve the OpenVAS Management Protocol (OMP).
char * from_scanner
Buffer of input from the scanner.
buffer_size_t from_scanner_start
The start of the data in the from_scanner buffer.
buffer_size_t from_client_end
The end of the data in the from_client buffer.
unsigned int buffer_size_t
buffer_size_t from_buffer_size
Size of from_client data buffer, in bytes.