projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add timeouts to 'tinc join'
[tinc]
/
src
/
invitation.h
diff --git
a/src/invitation.h
b/src/invitation.h
index
621baab
..
c637fa9
100644
(file)
--- a/
src/invitation.h
+++ b/
src/invitation.h
@@
-3,7
+3,7
@@
/*
invitation.h -- header for invitation.c.
/*
invitation.h -- header for invitation.c.
- Copyright (C) 2013 Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2013
-2022
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-20,8
+20,11
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-bool recvdata(int fd, char *data, size_t len);
int cmd_invite(int argc, char *argv[]);
int cmd_join(int argc, char *argv[]);
int cmd_invite(int argc, char *argv[]);
int cmd_join(int argc, char *argv[]);
+// Wait until data can be read from socket, or a timeout occurs.
+// true if socket is ready, false on timeout.
+bool wait_socket_recv(int fd);
+
#endif
#endif