Ignore:
Timestamp:
2010-04-09T23:16:38Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bb839e8
Parents:
c4bc92a
Message:

First stab at MSN keepalives.

Only kicks in if the user goes offline during a conversation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.h

    rc4bc92a r9bf2481  
    3131#define TYPING_NOTIFICATION_MESSAGE "\r\r\rBEWARE, ME R TYPINK MESSAGE!!!!\r\r\r"
    3232#define GROUPCHAT_SWITCHBOARD_MESSAGE "\r\r\rME WANT TALK TO MANY PEOPLE\r\r\r"
     33#define SB_KEEPALIVE_MESSAGE "\r\r\rDONT HANG UP ON ME!\r\r\r"
    3334
    3435#ifdef DEBUG_MSN
     
    5354                           "TypingUser: %s\r\n" \
    5455                           "\r\n\r\n"
     56
     57#define SB_KEEPALIVE_HEADERS "MIME-Version: 1.0\r\n" \
     58                             "Content-Type: text/x-ping\r\n" \
     59                             "\r\n\r\n"
    5560
    5661#define PROFILE_URL "http://members.msn.com/"
     
    8388        gint inp;
    8489        struct msn_handler_data *handler;
     90        gint keepalive;
    8591       
    8692        int trId;
     
    179185gboolean msn_sb_connected( gpointer data, gint source, b_input_condition cond );
    180186int msn_sb_write_msg( struct im_connection *ic, struct msn_message *m );
     187gboolean msn_sb_keepalive( gpointer data, gint source, b_input_condition cond );
    181188
    182189#endif //_MSN_H
Note: See TracChangeset for help on using the changeset viewer.