aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/stream.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-11-08 10:10:10 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-11-08 11:13:22 +0100
commitd3ba14648c8fc9d9f853c3aebd1476dc8d46e4d4 (patch)
treec28de3e42888f0833553099be0f226438cc8aae2 /include/osmocom/netif/stream.h
parente1a7ede826a0f29c1ca6a4b7ac20ff1d1264e4a2 (diff)
stream: allow to set reconnect timeout
This patch allows to set reconnect timeout. If zero, it will try immediately. If negative, it will skip retrying.
Diffstat (limited to 'include/osmocom/netif/stream.h')
-rw-r--r--include/osmocom/netif/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/netif/stream.h b/include/osmocom/netif/stream.h
index c669011..a43516e 100644
--- a/include/osmocom/netif/stream.h
+++ b/include/osmocom/netif/stream.h
@@ -31,6 +31,7 @@ struct osmo_stream_client_conn;
void osmo_stream_client_conn_set_addr(struct osmo_stream_client_conn *link, const char *addr);
void osmo_stream_client_conn_set_port(struct osmo_stream_client_conn *link, uint16_t port);
void osmo_stream_client_conn_set_data(struct osmo_stream_client_conn *link, void *data);
+void osmo_stream_client_conn_set_reconnect_timeout(struct osmo_stream_client_conn *link, int timeout);
void *osmo_stream_client_conn_get_data(struct osmo_stream_client_conn *link);
struct osmo_fd *osmo_stream_client_conn_get_ofd(struct osmo_stream_client_conn *link);
void osmo_stream_client_conn_set_connect_cb(struct osmo_stream_client_conn *link, int (*connect_cb)(struct osmo_stream_client_conn *link));