next up previous contents
Next: Listen on the network Up: An ICQ session with Previous: Logging into the ICQ   Contents

Staying alive with icq_KeepAlive

Now that we're online, we'd like to stay that way. We wouldn't want the ICQ server to disconnect us just because we're idling.

In order to notify the ICQ server that you're alive, just use the icq_KeepAlive function (line 228). If the ICQ server does not get a keep-alive sign in two minutes, you get disconnected so make sure you use this function frequently enough.

Here is how it is done:


Zvika Brakerski 2001-05-08