X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.h;h=6517fe8421f907fdafe7a95b21627c6ae79eb489;hb=refs%2Fheads%2F1.1;hp=3d017e92ef32ce50d02a509eec53a7aa242c8ef1;hpb=ced4c1a327b321a6d73028a3a15b41b0be64d910;p=tinc diff --git a/src/invitation.h b/src/invitation.h index 3d017e92..c637fa9c 100644 --- a/src/invitation.h +++ b/src/invitation.h @@ -1,6 +1,9 @@ +#ifndef TINC_INVITATION_H +#define TINC_INVITATION_H + /* 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 @@ -17,11 +20,11 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_INVITATION_H__ -#define __TINC_INVITATION_H__ - -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