Mercurial > pidgin
comparison src/toc.c @ 1153:3063e6743913
[gaim-migrate @ 1163]
handle the keepalives better. have ICQ force keepalives for connections, it's a bad hack but it's probably necessary for a UDP protocol.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 28 Nov 2000 04:12:06 +0000 |
| parents | 22f3c32a28f6 |
| children | bab9f3dc07f8 |
comparison
equal
deleted
inserted
replaced
| 1152:201ec77f3a60 | 1153:3063e6743913 |
|---|---|
| 45 #include "pixmaps/aol_icon.xpm" | 45 #include "pixmaps/aol_icon.xpm" |
| 46 #include "pixmaps/away_icon.xpm" | 46 #include "pixmaps/away_icon.xpm" |
| 47 #include "pixmaps/dt_icon.xpm" | 47 #include "pixmaps/dt_icon.xpm" |
| 48 #include "pixmaps/free_icon.xpm" | 48 #include "pixmaps/free_icon.xpm" |
| 49 | 49 |
| 50 #define REVISION "gaim:$Revision: 1156 $" | 50 #define REVISION "gaim:$Revision: 1163 $" |
| 51 | 51 |
| 52 #define TYPE_SIGNON 1 | 52 #define TYPE_SIGNON 1 |
| 53 #define TYPE_DATA 2 | 53 #define TYPE_DATA 2 |
| 54 #define TYPE_ERROR 3 | 54 #define TYPE_ERROR 3 |
| 55 #define TYPE_SIGNOFF 4 | 55 #define TYPE_SIGNOFF 4 |
| 309 | 309 |
| 310 /* we used to check for the CONFIG here, but we'll wait until we've sent our | 310 /* we used to check for the CONFIG here, but we'll wait until we've sent our |
| 311 * version of the config and then the toc_init_done message. we'll come back to | 311 * version of the config and then the toc_init_done message. we'll come back to |
| 312 * the callback in a better state if we get CONFIG anyway */ | 312 * the callback in a better state if we get CONFIG anyway */ |
| 313 | 313 |
| 314 gc->options = gc->user->options; | |
| 315 tdt->state = STATE_ONLINE; | 314 tdt->state = STATE_ONLINE; |
| 316 | 315 |
| 317 account_online(gc); | 316 account_online(gc); |
| 318 serv_finish_login(gc); | 317 serv_finish_login(gc); |
| 319 | 318 |
| 325 sflap_send(gc, snd, -1, TYPE_DATA); | 324 sflap_send(gc, snd, -1, TYPE_DATA); |
| 326 | 325 |
| 327 g_snprintf(snd, sizeof snd, "toc_set_caps %s %s %s %s %s", | 326 g_snprintf(snd, sizeof snd, "toc_set_caps %s %s %s %s %s", |
| 328 FILE_SEND_UID, FILE_GET_UID, B_ICON_UID, IMAGE_UID, VOICE_UID); | 327 FILE_SEND_UID, FILE_GET_UID, B_ICON_UID, IMAGE_UID, VOICE_UID); |
| 329 sflap_send(gc, snd, -1, TYPE_DATA); | 328 sflap_send(gc, snd, -1, TYPE_DATA); |
| 330 | |
| 331 if (gc->keepalive < 0) | |
| 332 update_keepalive(gc, gc->options & OPT_USR_KEEPALV); | |
| 333 | 329 |
| 334 return; | 330 return; |
| 335 } | 331 } |
| 336 | 332 |
| 337 debug_printf("From TOC server: %s\n", buf + sizeof(struct sflap_hdr)); | 333 debug_printf("From TOC server: %s\n", buf + sizeof(struct sflap_hdr)); |
