Einzelnen Beitrag anzeigen

drama22

Registriert seit: 12. Jan 2013
88 Beiträge
 
#1

ics check if client connected to server or not

  Alt 25. Jul 2015, 13:21
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 ?
  Mit Zitat antworten Zitat