OpenVAS Manager
7.0.3~git
|
Protos for communication between openvas-manager and openvas-server. More...
#include <glib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
Go to the source code of this file.
Functions | |
int | send_to_server (const char *) |
Send a message to the server. More... | |
int | sendf_to_server (const char *,...) |
Format and send a message to the server. More... | |
int | sendn_to_server (const void *, size_t) |
Send a number of bytes to the server. More... | |
unsigned int | to_server_buffer_space () |
Get the number of characters free in the server output buffer. More... | |
Protos for communication between openvas-manager and openvas-server.
This file contains the protos for ovas-mngr-comm.c
Definition in file ovas-mngr-comm.h.
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.