X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnection.h;h=f84c1953dd1f764dccc8f846b15c07fcd9986b84;hp=962d32b27b5b5f0bdd19107e4dc512207f3ba083;hb=228e7a5c8f0e517dcede50f886965a44fca39853;hpb=a5a4d2b865879b8694760c0a5b5909c9a3675027 diff --git a/src/connection.h b/src/connection.h index 962d32b2..f84c1953 100644 --- a/src/connection.h +++ b/src/connection.h @@ -91,7 +91,13 @@ typedef struct connection_t { int tcplen; /* length of incoming TCPpacket */ int allow_request; /* defined if there's only one request possible */ - time_t last_ping_time; /* last time we saw some activity from the other end */ + char *outbuf; /* metadata output buffer */ + 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 */ + + 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;