path: root/include
diff options
authorHarald Welte <laforge@gnumonks.org>2015-12-22 23:54:21 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-22 23:54:21 +0100
commitcc4ce39fc6e3b844605eb3fbc1c413b3282ed292 (patch)
tree95ffe7f7c674175f5cfaf146bb794a42feb00fc4 /include
parentb60edf05a6cde75dee8a7974c761f4f3929c47e3 (diff)
fix/complete stream client re-connect logic
So far, when the first connection attempt failed in osmo_stream_cli_open(), we returned a terminal errro without any re-connection attempts. While this may be useful in some cases, our general idea of the stream client logic is to handle the reconnection attempts insid the library. We introduce a new osmo_stream_cli_open2() function while keping the old behavior for backwards compatibility.
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/netif/stream.h b/include/osmocom/netif/stream.h
index efbb917..3981e41 100644
--- a/include/osmocom/netif/stream.h
+++ b/include/osmocom/netif/stream.h
@@ -49,6 +49,7 @@ struct osmo_stream_cli *osmo_stream_cli_create(void *ctx);
void osmo_stream_cli_destroy(struct osmo_stream_cli *cli);
int osmo_stream_cli_open(struct osmo_stream_cli *cli);
+int osmo_stream_cli_open2(struct osmo_stream_cli *cli, int reconnect);
void osmo_stream_cli_close(struct osmo_stream_cli *cli);
void osmo_stream_cli_send(struct osmo_stream_cli *cli, struct msgb *msg);