Re: Yahoo accounts get disconnected after some time

Meredydd <[email protected]> Sun, 8 Aug 2004 22:15:38 +0100
Newsgroups gmane.network.everybuddy.user
Message-ID <[email protected]>
On Sunday 08 August 2004 21:36, A. Craig West wrote:
> Looks like we need to add a call to yahoo_keepalive to prevent this
> from happening... Not sure how to fit such a thing in how everybuddy
> does things, though...
You'll want to set a timer (see plugin_api.h). Your best bet is probably 
a single timer, initialised when the Yahoo plugin first starts, running 
every X time interval and, each time, scanning through the list of open 
Yahoo connections (by walking through local_accounts or using some 
libyahoo2 internal list) and sending the relevant keepalives.

Meredydd