Article View: borland.public.cppbuilder.internet.socket
Article #3446Re: TServerSocket thread priority
From: Colin B Maharaj
Date: Sun, 18 Sep 2005 01:22
Date: Sun, 18 Sep 2005 01:22
34 lines
2204 bytes
2204 bytes
Hi Mark, thanks for the speedy response, I will give it a try... Mark Guerrieri wrote: > ServerSocket = new TServerSocket(NULL); > TServerWinSocket* sws = ServerSocket->Socket; > > TServerWinSocket has properties ActiveThreads and IdleThreads, and method > GetClientThread, all of which return a TThread derivative to which you can > assign Priority = tpLower. You can use the Connections property to get all > connected TServerClientWinSocket objects which you can pass to > GetClientThread. > > An easier method is to handle the TServerSocket.OnThreadStart event and set > the priority of the Thread parameter to change the thread's priority > whenever a new client connection begins. > > Mark > > "Colin B Maharaj" <noreply@myhost.com> wrote in message > news:432aa60e$1@newsgroups.borland.com... > >>I want to set the server socket thread priority something like this.... >> >> ServerSocket = new TServerSocket(NULL); >> ServerSocket->Priority = tpLower; >> >> >>Of course it does not work. Is there some kind of work around..... >> >>Thanks! > > >
Technical Details
Message-ID:
<432cc0e1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<432aa60e$1@newsgroups.borland.com> <432b4c59$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d92c0fe28095756c X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 17 Sep 2005 21:22:17 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TServerSocket thread priority References: <432aa60e$1@newsgroups.borland.com> <432b4c59$1@newsgroups.borland.com> In-Reply-To: <432b4c59$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 200.108.27.101 Message-ID: <432cc0e1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127006433 200.108.27.101 (17 Sep 2005 18:20:33 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail