|
OpenVAS Manager
7.0.3~git
|
API for communication between openvas-manager and openvas-server. More...
#include <errno.h>#include <fcntl.h>#include <glib.h>#include <netinet/in.h>#include <string.h>#include <sys/socket.h>#include <sys/types.h>#include <unistd.h>#include "logf.h"
Go to the source code of this file.
Macros | |
| #define | G_LOG_DOMAIN "md comm" |
| GLib log domain. More... | |
Functions | |
| unsigned int | to_server_buffer_space () |
| Get the number of characters free in the server output buffer. More... | |
| int | sendn_to_server (const void *msg, size_t n) |
| Send a number of bytes to the server. More... | |
| int | send_to_server (const char *msg) |
| Send a message to the server. More... | |
| int | sendf_to_server (const char *format,...) |
| Format and send a message to the server. More... | |
API for communication between openvas-manager and openvas-server.
This file contains an API for communicating with an openvas-server which uses OTP as protocol.
Definition in file ovas-mngr-comm.c.
| #define G_LOG_DOMAIN "md comm" |
GLib log domain.
Definition at line 52 of file ovas-mngr-comm.c.
| int send_to_server | ( | const char * | msg | ) |
Send a message to the server.
| [in] | msg | The message, a string. |
Definition at line 128 of file ovas-mngr-comm.c.
References sendn_to_server().
Referenced by acknowledge_bye(), acknowledge_feed_version_info(), manage_check_current_task(), and sendf_to_server().


| int sendf_to_server | ( | const char * | format, |
| ... | |||
| ) |
Format and send a message to the server.
| [in] | format | printf-style format string for message. |
Definition at line 141 of file ovas-mngr-comm.c.
References send_to_server().

| int sendn_to_server | ( | const void * | msg, |
| size_t | n | ||
| ) |
Send a number of bytes to the server.
| [in] | msg | The message, a sequence of bytes. |
| [in] | n | The number of bytes from msg to send. |
Definition at line 103 of file ovas-mngr-comm.c.
References to_server, and to_server_end.
Referenced by send_to_server().

| unsigned int to_server_buffer_space | ( | ) |
Get the number of characters free in the server output buffer.
Definition at line 88 of file ovas-mngr-comm.c.
References to_server_end, and to_server_start.