Board index » delphi » where is tidlist in latest indy10 snapshot?
API
![]() Delphi Developer |
API
![]() Delphi Developer |
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; |
Remy Lebeau (TeamB)
![]() Delphi Developer |
2007-10-06 01:03:48 AM
Re:where is tidlist in latest indy10 snapshot?
"API" <XXXX@XXXXX.COM>writes
Quoteon the latest snapshot, where is the tidlist Quotewhile there is no IdObjs unit anymore? 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 |
API
![]() Delphi Developer |
2007-10-06 01:18:27 AM
Re:where is tidlist in latest indy10 snapshot?
Remy Lebeau (TeamB) kirjoitti:
QuoteWhy are you manually disconnecting the server's connections in the first /A |