[icq-devel] Newcomer

Christophe Minguet (freesurf) c.minguet at freesurf.fr
Sat Nov 30 09:43:57 CET 2002

I had such problem ....
Cause e can't know if a socket is closed ...

Use the KEEPALIVE channel 5 packet :

2a 05 00 15 00 00
2a //byte, constant, flap magic
05 //byte, constant, flap channel
00 15 //word, variable, flap sequence number
00 00 //word, constant, flap data length

Send it periodically, you should get a socket error if u send to send
this packet and you are disconnected from serveur.

-----Message d'origine-----
De : icq-devel-admin at blipp.com [mailto:icq-devel-admin at blipp.com] De la
part de Starman
Envoyé : samedi 30 novembre 2002 09:26
À : icq-devel at blipp.com
Objet : [icq-devel] Newcomer

Hi there !

I'm new on this list. I developped an icq client called iXQ : 
But I get in troubles chile trying to detect server disconnections or 
network interruptions.

I'm thinking of using a ping-like fuction to test if the server is 
reachable but it's not enough : the server can be reachable, but the 
client may be not connected. I thought the server was sending a 
particular packet to tell the client that it is not connected when it 
tries to send messages to the server, but I can't find its dump 
anymore. Do you have any idea ?


icq-devel - The forum for ICQ protocol discussion
For unsubscribe and other mailing list info, see:

More information about the icq-devel mailing list