OpenVAS Manager  7.0.3~git
ovas-mngr-comm.h
Go to the documentation of this file.
1 /* OpenVAS Manager
2  * $Id$
3  * Description: See below.
4  *
5  * Authors:
6  * Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2009 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef OPENVAS_MANGER_OVAS_MNGR_COMM_H
27 #define OPENVAS_MANGER_OVAS_MNGR_COMM_H
28 
29 #include <glib.h>
30 #include <sys/socket.h>
31 #include <sys/types.h>
32 #include <netinet/in.h>
33 
41 int
42 send_to_server (const char *);
43 
44 int
45 sendf_to_server (const char*, ...);
46 
47 int
48 sendn_to_server (const void *, size_t);
49 
50 unsigned int
52 
53 #endif
int sendn_to_server(const void *, size_t)
Send a number of bytes to the server.
int send_to_server(const char *)
Send a message to the server.
int sendf_to_server(const char *,...)
Format and send a message to the server.
unsigned int to_server_buffer_space()
Get the number of characters free in the server output buffer.