]> git.meshlink.io Git - meshlink/blobdiff - src/net.h
Changed version number to 1.0pre3.
[meshlink] / src / net.h
index 8e067475f2c09e44eff3f138e944522a10202c6f..3dfc3a56d3814010c90105bd077bec60844df6b3 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -115,6 +115,8 @@ typedef struct conn_list_t {
   char buffer[MAXBUFSIZE+1];       /* metadata input buffer */
   int buflen;                      /* bytes read into buffer */
   int reqlen;                      /* length of first request in buffer */
+  time_t last_ping_time;           /* last time we saw some activity from the other end */  
+  int want_ping;                   /* 0 if there's no need to check for activity */
   struct conn_list_t *nexthop;     /* nearest meta-hop in this direction */
   struct conn_list_t *next;        /* after all, it's a list of connections */
 } conn_list_t;