Board index » delphi » where is tidlist in latest indy10 snapshot?

where is tidlist in latest indy10 snapshot?


2007-10-06 12:16:09 AM
delphi70
hi all,
on the latest snapshot, where is the tidlist while
there is no IdObjs unit anymore?
- - - - - -
var
list: tidlist;
context: tidcontext;
begin
// disconnect if found
List:= idftpserver1.contexts.locklist;
try
for p:=0 to list.count do
begin
context:= tidcontext(list[p]);
with context.connection.socket.binding do
if (PeerIP = ip) then // and (PeerPort = port) then
begin
context.connection.disconnect;
break;
end;
end;
finally
idftpserver1.contexts.UnlockList;
end;
 
 

Re:where is tidlist in latest indy10 snapshot?

"API" <XXXX@XXXXX.COM>writes
Quote
on the latest snapshot, where is the tidlist
Nowhere. It doesn't exist anymore. Use the standard TList class instead.
Quote
while there is no IdObjs unit anymore?
That is why TIdList doesn't exist anymore. The IdObjs and IdSys units have
been completely removed from Indy. The only reason they existed was to
provide cross-platform support to Indy, but we found better ways to handle
it so those units are no longer needed.
Why are you manually disconnecting the server's connections in the first
place? You should not be doing that at all.
Gambit
 

Re:where is tidlist in latest indy10 snapshot?

Remy Lebeau (TeamB) kirjoitti:
Quote
Why are you manually disconnecting the server's connections in the first
place? You should not be doing that at all.
Gambit
Just in case "admin" want to disconnect some specific client.
Thanks Gambit, i changed to TList and now it is working ok again.
/A