Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jul : How to disconnect a socket from within the execute event of a TCPserver?

www.cryer.info
Managed Newsgroup Archive

How to disconnect a socket from within the execute event of a TCPserver?

Subject:How to disconnect a socket from within the execute event of a TCPserver?
Posted by:"mike" (johnson..@zonnet.nl)
Date:25 Jul 2006 02:26:45

I'm trying to disconnect a socket by using acontext.connection.disconnect in the onexecute event of a TidTCPServer, but it doesn't seem to be doing anything, is this because I'm calling it from within the execute thread?

From the main thread I can close a connection just fine. But I really want to disconnect a connection WITHOUT having to process any further data that might still be sent or is waiting in the windows buffer to be processed. An abrupt disconnect with a flushed cache of some kind.

Replies:

www.cryer.info
Managed Newsgroup Archive