X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.h;h=c637fa9c7f528f80d8e80343afeda696782982ed;hb=4c6a9a9611442f958c3049a566ac4369653978e9;hp=6517fe8421f907fdafe7a95b21627c6ae79eb489;hpb=1c475ecb575367a6b3f9328b0f643ad636155341;p=tinc diff --git a/src/invitation.h b/src/invitation.h index 6517fe84..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 @@ -23,4 +23,8 @@ 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