BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TidSmtpServer active Thread!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Gregor
Guest





PostPosted: Sat Dec 20, 2003 3:12 pm    Post subject: TidSmtpServer active Thread! Reply with quote



Hi Volks !

How can I terminate (closed) one active Thread of manny Thread's from
TidStmpserver

TidSMTPServer.ThreadMgr.ActiveThreads-????????????

Sorry my English

Gregor


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Dec 22, 2003 12:36 am    Post subject: Re: TidSmtpServer active Thread! Reply with quote



"Gregor" <info (AT) ueding (DOT) de> wrote


Quote:
TidSMTPServer.ThreadMgr.ActiveThreads-????????????

The ActiveThreads property is a TThreadList. You have to call its
LockList() method in order to gain access to a TList that contains the
actual thread pointers. The threads themselves will be of type
TIdSMTPServerThread. For example:

var
pList: TList;
begin
with IdSMTPServer1.ThreadMgr.ActiveThreads do
begin
pList := LockList
try

TIdSMTPServerThread(pList.Items[SomeIndex]).Connection.Disconnect;
finally
UnlockList;
end;
end;
end;


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.