Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   ics check if client connected to server or not (https://www.delphipraxis.net/185997-ics-check-if-client-connected-server-not.html)

drama22 25. Jul 2015 13:21

ics check if client connected to server or not
 
hello , i uses ics client and server every thing is working smoothly now

iam trying to check if client connected to server or not or even if server is offline i try the following

Delphi-Quellcode:
procedure TForm1.ClientSessionConnected(Sender: TObject; ErrCode: Word);
begin
  if ErrCode <> 0 then
  display.Lines.Add('Cant connect to server. Error #' + IntToStr(ErrCode))
    else
  display.Lines.Add('Connected to server.');
end;
when server is online i got message that the client connected to server . but if server offline i cant catch the error code nothing display to the memo even when i check if errcode <> 0 . how do i catch if client connected or not ?


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz