Hello Guillaume,
I was just looking at it but see notes below.
HttpCli.CtrlSocket.LastError;
But THttpCli assigns an event handler to FCtrlSocket.OnError. So if
nobody assign something to OnSocketError then the error is lost.
TWSocket will not raise an exception if something is assigned to
OnErr
Dod a écrit :
> Hello Guillaume,
>
> of course change the "WSocketServer" I used (I just did a copy/paste
> from one of my code).
>
Thanks !
i'll check it when i test my application :)
regards,
--
Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - F
Hello Guillaume,
of course change the "WSocketServer" I used (I just did a copy/paste
from one of my code).
GM> Hi all,
GM> is there a way when, on ThttpCli.OnSocketError is triggered, to know what
was the error ?
GM> i mean is it an error from TCP/IP stack, a system error (like no handle,
etc
Hello Guillaume,
inttostr(WSocketServer.LastError)+' '+WSocketErrorDesc(WSocketServer.LastError)
should work.
GM> Hi all,
GM> is there a way when, on ThttpCli.OnSocketError is triggered, to know what
was the error ?
GM> i mean is it an error from TCP/IP stack, a system error (like no handle,
Hi all,
is there a way when, on ThttpCli.OnSocketError is triggered, to know what was
the error ?
i mean is it an error from TCP/IP stack, a system error (like no handle, etc...)
Thanks,
Regards,
--
Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 -