Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : TIdSimpleServer or TIdTCPServer

www.cryer.info
Managed Newsgroup Archive

TIdSimpleServer or TIdTCPServer

Subject:TIdSimpleServer or TIdTCPServer
Posted by:"Philip von Melle" (philip.vonmel..@globetrotter.de)
Date:21 Feb 2007 13:04:52

I am in the process of designing an app where A is the client (that I am
writing )and B is the (provided) server. A connects to B via a TCP protocol
exchanging XML frames. After A sends its request and awaits the answer from
B, A needs to listen on some port for (multiple) callbacks from B and must
answer those before receiving the final result from B. So the sequence is

A ------request-----> B

   A <--request--- B
   A ----reply---> B

   A <--request--- B
   A ----reply---> B

   A <--request--- B
   A ----reply---> B

A <------reply------- B

All communicautions is TCP. My question si whether it is better to use
TIdTCPServer or TIdSimpleServer here. And if the latter how to do that
(what is the threading model, what methods to call on TIdSimpleServer).

Any information welcome!

Regards, Philip

Replies:

www.cryer.info
Managed Newsgroup Archive