Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : Indy 9: TCP server

www.cryer.info
Managed Newsgroup Archive

Indy 9: TCP server

Subject:Indy 9: TCP server
Posted by:"Karsten" (..@mail.com)
Date:Fri, 18 Feb 2005 12:03:22

Hi

I'm upgrading an application to use Indy 9.0.18 and have a problem with the
TIdTCPServer.
In the old application I had a thread listening for new incomming
connections, when a new connection was established, the thread passed the
socket to the main thread using synchronize.

How can this be made using Indy? Each connection has it's own thread in a
TIdTCPServer, I would like the TIdTCPServer to only have one thread.

Is it possible to create a TIdTCPConnection from a socket handle, and
thereby keeping the old way?

Maybe I can use a inherited class of TIdThreadMgr, but I have no idea if
this is the way and how to do it...

I'm a rookie with Indy, so please be a little specific :-)

Thanks for all help in advance

Replies:

www.cryer.info
Managed Newsgroup Archive