X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconnection.h;h=92cd23b4f08028992a57ed2dcc23da6f12a8d40d;hb=760dd966efe7dbff316a8c638e40dee162848256;hp=087d8f0023086c58f047c687415b51762e92d62c;hpb=eb391c52eed46f3f03b404553df417851fc0cb90;p=tinc diff --git a/src/connection.h b/src/connection.h index 087d8f00..92cd23b4 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,9 +101,9 @@ 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 */ avl_tree_t *config_tree; /* Pointer to configuration tree belonging to him */ } connection_t;