🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3444

Re: TServerSocket thread priority

#3444
From: Mark Guerrieri
Date: Fri, 16 Sep 2005 22:52
26 lines
1904 bytes
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: <432b4c59$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <432aa60e$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
From: "Mark Guerrieri" <mguerrieri@nospam_cmsgrp.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <432aa60e$1@newsgroups.borland.com>
Subject: Re: TServerSocket thread priority
Date: Fri, 16 Sep 2005 18:52:31 -0400
Lines: 28
Organization: Creative Marketing Strategies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.50.174.82
Message-ID: <432b4c59$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126911065 209.50.174.82 (16 Sep 2005 15:51:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail