X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.h;h=b5ccaed9ec46b299bcf4a89445c1ab221a7e6638;hb=8d4b96efb7955eaa96174af4804597f92e124041;hp=25e122d05f0726de19da9d04f665e7b11a975b31;hpb=8d4ac42ceb67a93fc1e5c0d045819597c5da47d0;p=meshlink diff --git a/src/connection.h b/src/connection.h index 25e122d0..b5ccaed9 100644 --- a/src/connection.h +++ b/src/connection.h @@ -67,6 +67,7 @@ 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 or pinged them */ + time_t last_key_renewal; /* last time we renewed the SPTPS key */ struct outgoing_t *outgoing; /* used to keep track of outgoing connections */ @@ -79,11 +80,11 @@ typedef struct connection_t { int protocol_minor; /* used protocol */ } connection_t; -extern void init_connections(struct meshlink_handle *mesh); -extern void exit_connections(struct meshlink_handle *mesh); -extern connection_t *new_connection(void) __attribute__((__malloc__)); -extern void free_connection(connection_t *); -extern void connection_add(struct meshlink_handle *mesh, connection_t *); -extern void connection_del(struct meshlink_handle *mesh, connection_t *); +void init_connections(struct meshlink_handle *mesh); +void exit_connections(struct meshlink_handle *mesh); +connection_t *new_connection(void) __attribute__((__malloc__)); +void free_connection(connection_t *); +void connection_add(struct meshlink_handle *mesh, connection_t *); +void connection_del(struct meshlink_handle *mesh, connection_t *); #endif