From 1448f50db40b06a36783f2d1dd5d8e0ab865aa03 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 8 Nov 2016 22:53:32 +0100 Subject: client: Allow to configure and connect multiple servers Allow to configure multiple servers and connect. Introduce a new VTY node to allow multiple servers. Add an explicit connect. Do not put the main connection into the same list but assume it exists. Change-Id: I9448ad4a005dd7c7eb1c615d03e57d6cb058ae4d --- include/osmo-pcap/osmo_pcap_client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/osmo-pcap/osmo_pcap_client.h') diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h index fc982f3..5947615 100644 --- a/include/osmo-pcap/osmo_pcap_client.h +++ b/include/osmo-pcap/osmo_pcap_client.h @@ -48,6 +48,7 @@ enum { struct osmo_pcap_client_conn { struct llist_head entry; + const char *name; char *srv_ip; int srv_port; @@ -108,3 +109,7 @@ void osmo_client_send_link(struct osmo_pcap_client_conn *client); void osmo_client_connect(struct osmo_pcap_client_conn *); void osmo_client_reconnect(struct osmo_pcap_client_conn *); + +struct osmo_pcap_client_conn *osmo_client_find_or_create_conn(struct osmo_pcap_client *, const char *name); + +void osmo_client_conn_init(struct osmo_pcap_client_conn *conn, struct osmo_pcap_client *client); -- cgit v1.2.3