Mercurial > pidgin.yaz
diff libpurple/connection.h @ 22149:252b96b6a32c
Don't send keep-alives if we've received data since in the last KEEPALIVE_INTERVAL seconds
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 23 Jan 2008 23:28:38 +0000 |
parents | a463f05b4566 |
children | 2b426862ffbf |
line wrap: on
line diff
--- a/libpurple/connection.h Thu Jan 17 21:08:20 2008 +0000 +++ b/libpurple/connection.h Wed Jan 23 23:28:38 2008 +0000 @@ -251,6 +251,8 @@ gboolean wants_to_die; guint disconnect_timeout; /**< Timer used for nasty stack tricks */ + time_t last_received; /**< When we last received a packet. Set by the + prpl to avoid sending unneeded keepalives */ }; #ifdef __cplusplus