Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Dual TIdTCPClient / TIdTCPServer Connection

www.cryer.info
Managed Newsgroup Archive

Dual TIdTCPClient / TIdTCPServer Connection

Subject:Dual TIdTCPClient / TIdTCPServer Connection
Posted by:"Dennis Christensen" (d..@gatehouse.dk)
Date:Tue, 19 Feb 2008 09:57:47

Hi

I have two applications running on two diffeent PC's and I am using two
pairs of TIdTCPClient / TIdTCPServer to send messages between them. One pair
is always used in direction A->B, and the other pair is alway used in the
opposite direction B->A.

I am sending very little data. Only some simpe text messages and not very
often.

I have done nothing regarding threading.

Is this the best way to implements this two way communication?

I am asking because the communication sometimes deadlocks. I probably need
to add some threading, but need some advice on the best way to do this.

Best regards
Dennis Chistensen

Replies:

www.cryer.info
Managed Newsgroup Archive