syslog-ng source
afinet-source.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2012 Balabit
3  * Copyright (c) 1998-2012 Balázs Scheidler
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef AFINET_SOURCE_H_INCLUDED
25 #define AFINET_SOURCE_H_INCLUDED
26 
27 #include "afinet.h"
28 #include "afsocket-source.h"
29 #include "transport/tls-context.h"
30 
31 typedef struct _AFInetSourceDriver
32 {
33  AFSocketSourceDriver super;
34  /* character as it can contain a service name from /etc/services */
35  gchar *bind_port;
36  gchar *bind_ip;
38 
39 void afinet_sd_set_tls_context(LogDriver *s, TLSContext *tls_context);
40 
47 
48 void afinet_sd_set_localport(LogDriver *self, gchar *service);
49 void afinet_sd_set_localip(LogDriver *self, gchar *ip);
50 
51 #endif
AFInetSourceDriver * afinet_sd_new_tcp(GlobalConfig *cfg)
Definition: afinet-source.c:136
void afinet_sd_set_tls_context(LogDriver *s, TLSContext *tls_context)
Definition: afinet-source.c:58
AFInetSourceDriver * afinet_sd_new_udp6(GlobalConfig *cfg)
Definition: afinet-source.c:155
AFInetSourceDriver * afinet_sd_new_tcp6(GlobalConfig *cfg)
Definition: afinet-source.c:142
AFInetSourceDriver * afinet_sd_new_udp(GlobalConfig *cfg)
Definition: afinet-source.c:149
void afinet_sd_set_localip(LogDriver *self, gchar *ip)
Definition: afinet-source.c:48
AFInetSourceDriver * afinet_sd_new_network(GlobalConfig *cfg)
Definition: afinet-source.c:171
AFInetSourceDriver * afinet_sd_new_syslog(GlobalConfig *cfg)
Definition: afinet-source.c:162
void afinet_sd_set_localport(LogDriver *self, gchar *service)
Definition: afinet-source.c:38
Definition: afinet-source.h:32
AFSocketSourceDriver super
Definition: afinet-source.h:33
gchar * bind_port
Definition: afinet-source.h:35
gchar * bind_ip
Definition: afinet-source.h:36
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34