summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/proto.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-02-02 15:42:00 +0000
committerpjd <pjd@FreeBSD.org>2011-02-02 15:42:00 +0000
commit3acb629cd228ce6366df06b502aea7ca95055b91 (patch)
tree9223d8207fa5991396838925457e2a191fb13707 /sbin/hastd/proto.h
parentfe04ca41978603dd92e6ce84f2f087885c567429 (diff)
downloadFreeBSD-src-3acb629cd228ce6366df06b502aea7ca95055b91.zip
FreeBSD-src-3acb629cd228ce6366df06b502aea7ca95055b91.tar.gz
Allow to specify connection timeout by the caller.
MFC after: 1 week
Diffstat (limited to 'sbin/hastd/proto.h')
-rw-r--r--sbin/hastd/proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/proto.h b/sbin/hastd/proto.h
index ad44b1a..f4719e6 100644
--- a/sbin/hastd/proto.h
+++ b/sbin/hastd/proto.h
@@ -38,7 +38,7 @@
struct proto_conn;
int proto_client(const char *addr, struct proto_conn **connp);
-int proto_connect(struct proto_conn *conn);
+int proto_connect(struct proto_conn *conn, int timeout);
int proto_server(const char *addr, struct proto_conn **connp);
int proto_accept(struct proto_conn *conn, struct proto_conn **newconnp);
int proto_send(const struct proto_conn *conn, const void *data, size_t size);
OpenPOWER on IntegriCloud