diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-11 23:32:47 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-11 23:32:47 +0000 | 
| commit | e132b60e77f395463cf95dc4ee09e96e9658ae35 (patch) | |
| tree | 24a387ad64eaee17589b61cabaded508477b598f /protocols/nogaim.h | |
| parent | dd672e2c4d0dcf73a30be3d8f7fc2ec38cb6450e (diff) | |
Extend keepalive code to time out connections when pings don't get
acknowledged, using this for Twitter streams and MSN so far.
Diffstat (limited to 'protocols/nogaim.h')
| -rw-r--r-- | protocols/nogaim.h | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/protocols/nogaim.h b/protocols/nogaim.h index eccf77da..fb82fc73 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -67,6 +67,8 @@  #define OPT_TYPING      0x00000100 /* Some pieces of code make assumptions */  #define OPT_THINKING    0x00000200 /* about these values... Stupid me! */  #define OPT_NOOTR       0x00001000 /* protocol not suitable for OTR */ +#define OPT_PONGS       0x00010000 /* Service sends us keep-alives */ +#define OPT_PONGED      0x00020000 /* Received a keep-alive during last interval */  /* ok. now the fun begins. first we create a connection structure */  struct im_connection | 
