Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : How to stop a Tid(Cmd)TCPServer while clients are connected?

www.cryer.info
Managed Newsgroup Archive

How to stop a Tid(Cmd)TCPServer while clients are connected?

Subject:How to stop a Tid(Cmd)TCPServer while clients are connected?
Posted by:"Chris Ueberall" (cuebera..@web.de)
Date:4 Dec 2007 06:10:07

Hi,

using Indy10, D2007

I tried several methods to stop a TCPServer while a client is
connected, but without success, the server always hangs then.

a) myIdCmdTCPServer.Active := False;

b) myIdCmdTCPServer.StopListening;

c) closing all sockets of every connection first didn't help too.

What I'm missing?

--

Replies:

www.cryer.info
Managed Newsgroup Archive