Flowgrind
Advanced TCP traffic generator
fg_rpc_server.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright (C) 2010-2013 Christian Samsel <christian.samsel@rwth-aachen.de>
8  * Copyright (C) 2009 Tim Kosse <tim.kosse@gmx.de>
9  * Copyright (C) 2007-2008 Daniel Schaffrath <daniel.schaffrath@mac.com>
10  *
11  * This file is part of Flowgrind.
12  *
13  * Flowgrind is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation, either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * Flowgrind is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with Flowgrind. If not, see <http://www.gnu.org/licenses/>.
25  *
26  */
27 
28 #ifndef _FG_RPC_SERVER_H_
29 #define _FG_RPC_SERVER_H_
30 
31 #ifdef HAVE_CONFIG_H
32 #include "config.h"
33 #endif /* HAVE_CONFIG_H */
34 
35 #include <stdlib.h>
36 #include <stdint.h>
37 #include <stdio.h>
38 #include <string.h>
39 #include <unistd.h>
40 #include <netdb.h>
41 #include <netinet/tcp.h>
42 
43 #include <xmlrpc-c/base.h>
44 #include <xmlrpc-c/server.h>
45 #include <xmlrpc-c/server_abyss.h>
46 #include <xmlrpc-c/util.h>
47 
50 {
52  xmlrpc_env env;
54  xmlrpc_server_abyss_parms parms;
55 };
56 
63 void init_rpc_server(struct fg_rpc_server *server, char *rpc_bind_addr,
64  unsigned port);
65 
67 void run_rpc_server(struct fg_rpc_server *server);
68 
69 #endif /* _FG_RPC_SERVER_H_ */
port
static unsigned port
Definition: flowgrindd.c:95
fg_rpc_server
Information about the daemons XMLrpc server.
Definition: fg_rpc_server.h:49
rpc_bind_addr
static char * rpc_bind_addr
Definition: flowgrindd.c:98
run_rpc_server
void run_rpc_server(struct fg_rpc_server *server)
Enters the xmlrpc server mainloop.
Definition: fg_rpc_server.c:878
fg_rpc_server::env
xmlrpc_env env
Environment used by the Abyss server.
Definition: fg_rpc_server.h:52
config.h
init_rpc_server
void init_rpc_server(struct fg_rpc_server *server, char *rpc_bind_addr, unsigned port)
Initializes the xmlrpc server.
Definition: fg_rpc_server.c:835
fg_rpc_server::parms
xmlrpc_server_abyss_parms parms
Parameters of the XMLrpc server.
Definition: fg_rpc_server.h:54