Sockets status

Résolu
skrypterz Messages postés 19 Date d'inscription dimanche 12 décembre 2004 Statut Membre Dernière intervention 2 février 2006 - 22 janv. 2006 à 22:03
skrypterz Messages postés 19 Date d'inscription dimanche 12 décembre 2004 Statut Membre Dernière intervention 2 février 2006 - 24 janv. 2006 à 13:06
Salut a tous,



J'aimerais savoir comment avoir le status d'un sock j ai essayer
if sock.status = sckconnected then



mais j'aimerais faire



if (not (sock.status = sckdisconnected)) then
begin
action;
end;



marche pas quelqu'un qui sais comment ?



maxxim™ { Visual Basic 6.0, Delphi 6.0 }
[mailto:maxxim.rapfranco@hotmail.com maxxim.rapfranco@hotmail.com]

3 réponses

skrypterz Messages postés 19 Date d'inscription dimanche 12 décembre 2004 Statut Membre Dernière intervention 2 février 2006
24 janv. 2006 à 13:06
Pas oubliger de répondre merci tant qu'a attendre pis jamais m'faire repondre sur se foutu site j ai trouver la solution!!!

try
sock.disconnect;
except
end;



maxxim™ { Visual Basic 6.0, Delphi 6.0 }
[mailto:maxxim.rapfranco@hotmail.com maxxim.rapfranco@hotmail.com]
3
skrypterz Messages postés 19 Date d'inscription dimanche 12 décembre 2004 Statut Membre Dernière intervention 2 février 2006
23 janv. 2006 à 02:13
Pour mieu expliquer... je voudrais fermer le sock si il est pas fermer (I)...... merci de me repondre ^^



maxxim™ { Visual Basic 6.0, Delphi 6.0 }
[mailto:maxxim.rapfranco@hotmail.com maxxim.rapfranco@hotmail.com]
0
skrypterz Messages postés 19 Date d'inscription dimanche 12 décembre 2004 Statut Membre Dernière intervention 2 février 2006
23 janv. 2006 à 06:41
Specification : TPOWERSOCK



maxxim™ { Visual Basic 6.0, Delphi 6.0 }
[mailto:maxxim.rapfranco@hotmail.com maxxim.rapfranco@hotmail.com]
0
Rejoignez-nous