Mercurial > pidgin
diff libfaim/aim_misc.c @ 891:fa2feef25e1e
[gaim-migrate @ 901]
Oscar options?
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 12 Sep 2000 22:59:36 +0000 |
parents | e1da6a6ec42b |
children | 59d9e1177ab5 |
line wrap: on
line diff
--- a/libfaim/aim_misc.c Tue Sep 12 20:24:08 2000 +0000 +++ b/libfaim/aim_misc.c Tue Sep 12 22:59:36 2000 +0000 @@ -540,6 +540,29 @@ } /* + * aim_flap_nop() + * + * No-op. WinAIM 4.x sends these _every minute_ to keep + * the connection alive. + */ +faim_export unsigned long aim_flap_nop(struct aim_session_t *sess, + struct aim_conn_t *conn) +{ + struct command_tx_struct *newpacket; + + if (!(newpacket = aim_tx_new(AIM_FRAMETYPE_OSCAR, 0x0005, conn, 0))) + return sess->snac_nextid; + + newpacket->lock = 1; + newpacket->commandlen = 0; + newpacket->lock = 0; + + aim_tx_enqueue(sess, newpacket); + + return (sess->snac_nextid); +} + +/* * aim_bos_reqrights() * * Request BOS rights.