comparison libpurple/protocols/myspace/myspace.c @ 17688:b1f9a3f5c0d0

Time the time between keep alives (I get 124 seconds).
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Wed, 04 Jul 2007 21:35:42 +0000
parents d0c8b7748065
children 76b68a9f9036
comparison
equal deleted inserted replaced
17687:d0c8b7748065 17688:b1f9a3f5c0d0
1541 /* TODO: Setup a timer, if keep-alive is not received within ~3 minutes, then 1541 /* TODO: Setup a timer, if keep-alive is not received within ~3 minutes, then
1542 * disconnect the user. As it stands, if Internet connection goes out (this 1542 * disconnect the user. As it stands, if Internet connection goes out (this
1543 * just happened here), msimprpl will appear to be connected forever, while 1543 * just happened here), msimprpl will appear to be connected forever, while
1544 * other plugins (oscar, etc.) will time out. Msimprpl should timeout too. */ 1544 * other plugins (oscar, etc.) will time out. Msimprpl should timeout too. */
1545 purple_debug_info("msim", "msim_process: got keep alive\n"); 1545 purple_debug_info("msim", "msim_process: got keep alive\n");
1546 purple_debug_info("msim", "msim_process: last ka was %d s ago\n",
1547 time(NULL) - session->last_ka);
1548 session->last_ka = time(NULL);
1546 return TRUE; 1549 return TRUE;
1547 } else { 1550 } else {
1548 msim_unrecognized(session, msg, "in msim_process"); 1551 msim_unrecognized(session, msg, "in msim_process");
1549 return FALSE; 1552 return FALSE;
1550 } 1553 }