24 #ifndef AFSOCKET_DEST_H_INCLUDED
25 #define AFSOCKET_DEST_H_INCLUDED
63 LogWriter *(*construct_writer)(AFSocketDestDriver *
self);
65 const gchar *(*get_dest_name)(
const AFSocketDestDriver *s);
80 void (*
free_fn)(AFSocketDestKeptAliveConnection *s);
84 static inline LogWriter *
85 afsocket_dd_construct_writer(AFSocketDestDriver *
self)
87 return self->construct_writer(
self);
90 static inline gboolean
91 afsocket_dd_setup_addresses(AFSocketDestDriver *s)
93 return s->setup_addresses(s);
96 static inline const gchar *
97 afsocket_dd_get_dest_name(
const AFSocketDestDriver *s)
99 return s->get_dest_name(s);
121 const gchar *transport,
const gchar *proto,
122 GSockAddr *dest_addr, LogWriter *writer);
127 afsocket_kept_alive_connection_free(AFSocketDestKeptAliveConnection *
self)
void afsocket_kept_alive_connection_free_method(AFSocketDestKeptAliveConnection *s)
Definition: afsocket-dest.c:62
void afsocket_dd_free(LogPipe *s)
Definition: afsocket-dest.c:782
gboolean afsocket_dd_setup_addresses_method(AFSocketDestDriver *self)
Definition: afsocket-dest.c:457
void afsocket_kept_alive_connection_init_instance(AFSocketDestKeptAliveConnection *s, const gchar *transport, const gchar *proto, GSockAddr *dest_addr, LogWriter *writer)
Definition: afsocket-dest.c:42
gboolean afsocket_dd_deinit(LogPipe *s)
Definition: afsocket-dest.c:741
void afsocket_dd_restore_connection_method(AFSocketDestDriver *self, AFSocketDestKeptAliveConnection *item)
Definition: afsocket-dest.c:489
void afsocket_dd_init_instance(AFSocketDestDriver *self, SocketOptions *socket_options, TransportMapper *transport_mapper, GlobalConfig *cfg)
Definition: afsocket-dest.c:797
void afsocket_dd_connected_with_fd(gpointer self, gint fd, GSockAddr *saddr)
Definition: afsocket-dest.c:289
void afsocket_dd_set_keep_alive(LogDriver *self, gint enable)
void afsocket_dd_stop_watches(AFSocketDestDriver *self)
Definition: afsocket-dest.c:210
gboolean afsocket_dd_init(LogPipe *s)
Definition: afsocket-dest.c:688
void afsocket_dd_save_connection(AFSocketDestDriver *self, AFSocketDestKeptAliveConnection *c)
Definition: afsocket-dest.c:721
gboolean afsocket_dd_should_restore_connection_method(AFSocketDestDriver *self, AFSocketDestKeptAliveConnection *c)
Definition: afsocket-dest.c:85
LogWriter * afsocket_dd_construct_writer_method(AFSocketDestDriver *self)
Definition: afsocket-dest.c:496
void afsocket_dd_reconnect(AFSocketDestDriver *self)
Definition: afsocket-dest.c:403
Definition: gsockaddr.h:46
Definition: logwriter.h:51
Definition: stats-counter.h:67
Definition: afsocket-dest.h:39
LogWriterOptions writer_options
Definition: afsocket-dest.h:46
guint connections_kept_alive_across_reloads
Definition: afsocket-dest.h:43
const gchar * original_dest_name
Definition: afsocket-dest.h:61
gboolean connection_initialized
Definition: afsocket-dest.h:51
void(* restore_connection)(AFSocketDestDriver *s, AFSocketDestKeptAliveConnection *c)
Definition: afsocket-dest.h:69
StatsCounterItem * output_unreachable
Definition: afsocket-dest.h:59
void(* save_connection)(AFSocketDestDriver *s)
Definition: afsocket-dest.h:67
gboolean(* setup_addresses)(AFSocketDestDriver *s)
Definition: afsocket-dest.h:64
struct iv_fd connect_fd
Definition: afsocket-dest.h:52
LogWriter * writer
Definition: afsocket-dest.h:45
LogProtoClientFactory * proto_factory
Definition: afsocket-dest.h:47
LogDestDriver super
Definition: afsocket-dest.h:40
struct iv_timer reconnect_timer
Definition: afsocket-dest.h:53
TransportMapper * transport_mapper
Definition: afsocket-dest.h:55
struct _AFSocketDestDriver::@111 metrics
SocketOptions * socket_options
Definition: afsocket-dest.h:54
gint fd
Definition: afsocket-dest.h:44
GSockAddr * bind_addr
Definition: afsocket-dest.h:49
GSockAddr * dest_addr
Definition: afsocket-dest.h:50
gboolean(* should_restore_connection)(AFSocketDestDriver *s, AFSocketDestKeptAliveConnection *c)
Definition: afsocket-dest.h:68
Definition: afsocket-dest.h:73
gchar * proto
Definition: afsocket-dest.h:75
void(* free_fn)(AFSocketDestKeptAliveConnection *s)
Definition: afsocket-dest.h:80
GSockAddr * dest_addr
Definition: afsocket-dest.h:77
gchar * transport
Definition: afsocket-dest.h:74
LogWriter * writer
Definition: afsocket-dest.h:78
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
TransportMapper * transport_mapper
Definition: transport-mapper-lib.c:25