Internet Direct (Indy)
Home
PreviousUpNext
TIdSchedulerOfThread.NewYarn Method

Creates the thread-based task for a client connection scheduled in a server.

Pascal
function NewYarn(
    AThread: TIdThreadWithTask = nil
): TIdYarnOfThread;
Parameters 
Description 
AThread 
Executable task for a client connection. Default value is nil. 

TIdYarnOfThread - Thread-based yarn for the client connections executable task.

NewYarn is a TIdYarnOfThread function used to create the thread-based task for a client connection to a server. 

NewYarn will raise an EIdException exception with the message in RSThreadSchedulerThreadRequired when AThread contains a Nil value. 

The return value for the method is a TIdYarnOfThread instance containing the thread-based yarn for the client connections executable task. 

NewYarn is used in the AcquireYarn method in descendant classes.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.