path: root/include
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-08-05 15:47:08 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-08-05 16:10:05 +0200
commite024869a728b481cd726ce3489a54643ffb57d2b (patch)
tree19c4138c32dcda48a831115f3033d7a9dc3f0156 /include
parentad29ce6f0699ca2b26fbd4cc5cdf7779d70bb8e2 (diff)
server: Add zmq based event and data interface to the server
To allow easily extracting or streaming the data to an external analysis system, zeromq can be configured (and reconfigured). The system works as fire and forget and no loss detection is present. A simple go based client application is provided to subscribe to the publisher. Change-Id: I4f3e6d675023a81b7d2ee19bf1f44a2be0ca003c
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_server.h b/include/osmo-pcap/osmo_pcap_server.h
index 3af9ded..5af0838 100644
--- a/include/osmo-pcap/osmo_pcap_server.h
+++ b/include/osmo-pcap/osmo_pcap_server.h
@@ -58,6 +58,7 @@ struct osmo_pcap_conn {
/* Remote connection */
struct osmo_fd rem_fd;
int local_fd;
+ char *curr_filename;
/* pcap stuff */
struct pcap_file_header file_hdr;
@@ -98,5 +99,6 @@ struct osmo_pcap_conn *osmo_pcap_server_find(struct osmo_pcap_server *ser,
const char *name);
void osmo_pcap_server_delete(struct osmo_pcap_conn *conn);
void vty_server_init(struct osmo_pcap_server *server);
+void osmo_pcap_server_close_trace(struct osmo_pcap_conn *conn);