Re: Is there demo of making TIdHTTPServer to use custom (peer)Threads

Giganews Newsgroups
Subject: Re: Is there demo of making TIdHTTPServer to use custom (peer)Threads
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 13 Jun 2006

"Tommi Prami" <tom…@fssk.juu.org> wrote in message
news:52B0B2F649FCE240tom…@fssk.juu.org...

> I need to make at least some support for the Thread Affinity
> so I most likely need to override constructor of the threads.

In Indy 9, you will have to derive a new class from TIdPeerThread and then
set the server's ThreadClass property.

In Indy 10, you will have to derive a new class from TIdThreadWithTask,
assign a thread scheduler to the server, and then set the scheduler's
ThreadClass property.

Gambit

Replies

None

In response to

Is there demo of making TIdHTTPServer to use custom (peer)Threads posted by Tommi Prami on Wed, 14 Jun 2006