Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : TCP speed over internet

www.cryer.info
Managed Newsgroup Archive

TCP speed over internet

Subject:TCP speed over internet
Posted by:"SD" (nospa..@please.it)
Date:Fri, 1 Jul 2005 08:31:59

I've wrote a simple client and server program using
TIdTCPClient & TIdTCPServer (Indy 9.0.18) and Delphi 7.

When I using it on localhost & lan all work at very fast speed.

When I try to use that in internet connection the send/reply
time become very very slow, in order of 300-700ms for each.

In the client I use 'SendCmd' normally followed by 10 to 50 ASCII chars.

In the server I use the CommandHandler builtin in TIdTCPServer to
dispatch every command in one event called IdTCPServer1.OnMyCommand.

In OnMyCommand I do very simple operations (fast) and I send back
result with:

  ASender.Reply.NumericCode := 200;
  ASender.Reply.Text.Text := Result;

By your experience what I've mistaked ?

What is the reasonable c/s speed over TCP with internet DSL ?

I would like to obtain a c/s data tranfering near to 100-180ms,
It is possible ?

Thank you very much
Sly John

Replies:

www.cryer.info
Managed Newsgroup Archive