X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconnection.h;h=495c38e159680de85c90650209649b76006f0b12;hb=7e1117197ca4fc62af93fda50e28e0ff06cb736c;hp=087d8f0023086c58f047c687415b51762e92d62c;hpb=eb391c52eed46f3f03b404553df417851fc0cb90;p=tinc diff --git a/src/connection.h b/src/connection.h index 087d8f00..495c38e1 100644 --- a/src/connection.h +++ b/src/connection.h @@ -26,6 +26,8 @@ #include #include +#include + #include "avl_tree.h" #define OPTION_INDIRECT 0x0001 @@ -60,6 +62,7 @@ typedef struct connection_t { char *hostname; /* the hostname of its real ip */ int protocol_version; /* used protocol */ + struct event ev; /* events on this metadata connection */ int socket; /* socket used for this connection */ long int options; /* options for this connection */ connection_status_t status; /* status info */ @@ -98,6 +101,7 @@ typedef struct connection_t { int outbufstart; /* index of first meaningful byte in output buffer */ int outbuflen; /* number of meaningful bytes in output buffer */ int outbufsize; /* number of bytes allocated to output buffer */ + struct event outev; /* events on this metadata connection */ time_t last_ping_time; /* last time we saw some activity from the other end or pinged them */ time_t last_flushed_time; /* last time buffer was empty. Only meaningful if outbuflen > 0 */