Echo Issues

Giganews Newsgroups
Subject: Echo Issues
Posted by:  Adrian Purdila (adypurdi…@yahoo.com)
Date: Thu, 27 Jul 2006

I'm experiencing a little problem with the echo system. I have an application that acts as a server or client, depends on my choice. I have a timer set for 5 sec that has the following action:

  try
    IdEcho.Host := '127.0.0.1';
    IdEcho.Connect;
    AdaugaLog(IdEcho.Echo('ECHO'));
    IdEcho.Disconnect;
  except
  end;

AdaugaLog() is a procedure that adds a string message to a ListView. At the form's OnShow() method i start the echo server. I think once i echo a message to the server i should get the same response but i don't. The returned string is null. Don't have firewall, so the application has full rights to use the connection. Any ideas?

Thx.

Replies