diff options
author | pjd <pjd@FreeBSD.org> | 2011-02-02 15:42:00 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-02-02 15:42:00 +0000 |
commit | 3acb629cd228ce6366df06b502aea7ca95055b91 (patch) | |
tree | 9223d8207fa5991396838925457e2a191fb13707 /sbin/hastd/proto.h | |
parent | fe04ca41978603dd92e6ce84f2f087885c567429 (diff) | |
download | FreeBSD-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.h | 2 |
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); |