X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.h;h=c637fa9c7f528f80d8e80343afeda696782982ed;hb=4c6a9a9611442f958c3049a566ac4369653978e9;hp=621baab923d3e60a8e4f7941091dedbcd85e1d69;hpb=5822f817aa802c2c5a83e9d99a8ae78cb822799b;p=tinc diff --git a/src/invitation.h b/src/invitation.h index 621baab9..c637fa9c 100644 --- a/src/invitation.h +++ b/src/invitation.h @@ -3,7 +3,7 @@ /* invitation.h -- header for invitation.c. - Copyright (C) 2013 Guus Sliepen + Copyright (C) 2013-2022 Guus Sliepen 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. */ -bool recvdata(int fd, char *data, size_t len); 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