Question about IdMappedPortTCP

Giganews Newsgroups
Subject: Question about IdMappedPortTCP
Posted by:  Igor Panchenko (ig…@implabs.com)
Date: Fri, 15 Sep 2006

Using Indy9.
I'm doing some kind of traffic counting in OnExecute and OnOunboundData and
verifying client IP in OnConnect.
I need to disconnect client in case it exceeds traffic limit of has
disallowed
IP address. So the question is: Is it safe and technically correct to call
AThread.Connection.Disconnect from OnExecute, OnOunboundData and OnConnect?

Replies