Topic Path: Symbol Reference > Classes > TIdStackBSDBase Class > TIdStackBSDBase Methods > SetBlocking Method
TIdStackBSDBase.SetBlocking Method

Sets the IO mode for the socket handle.

procedure SetBlocking(
    ASocket: TIdStackSocketHandle; 
    const ABlocking: Boolean
); virtual; abstract;
Socket handle used to set the IO Mode.
Indicates if blocking IO mode is enabled for the socket handle. 

SetBlocking is an abstract virtual procedure that specifes the interface used to set IO mode for the socket handle in ASocket. 

SetBlocking must be implemented in a descendant class to access to the ioctl() API for a specific protocol stack implementation. 

ASocket is the socket handle used to set the IO mode. 

ABlocking is a boolean value that indicates if the socket handle should use non-blocking IO mode when False. Convert ABlocking to the data type required for the protocol stack implementation when calling the ioctl() API function.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.