Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: INDY TIdTCPClient and TIdTCPServer Usage

www.cryer.info
Managed Newsgroup Archive

Re: INDY TIdTCPClient and TIdTCPServer Usage

Subject:Re: INDY TIdTCPClient and TIdTCPServer Usage
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 22 Mar 2006 10:49:03

"Dennis" <marianndkc@home3.gvdnet.dk> wrote in message
news:44213622$1@newsgroups.borland.com...

> In my application I am going to send raw data between two PC's.
> probably array of byte. Which pair of sockets should I use for this?

That depends on the direction of your commands.  Your earlier message
suggests that your client will send all of the commands, and the server will
send all of the responses.  In which case, you would use TIdTCPClient (or a
descendant) with either TIdTCPServer or TIdCmdTCPServer.  Use
TIdCmdTCPServer only if you are going to use its CommandHandlers collection.
Otherwise, use TIdTCPServer with its OnExecute event instead.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive