Internet Direct (Indy)
Home
PreviousUpNext
TIdSimpleServer.AcceptWait Property

Timeout for accepting a new connection.

Pascal
property AcceptWait: Integer;

AcceptWait is an Integer property that defines the timeout for accepting a new connection on the socket handle in Binding. AcceptWait is expressed in milliseconds. 

The default value for AcceptWait is ID_ACCEPT_WAIT, as assigned in the constructor for the object instance. 

AcceptWait is used in Listen to determine if the listener socket handle allocated to Binding is Readable. When the socket descriptor is readable, the new connection request is accepted using the handle in the listener, and the IOHandler for the connection is used to trigger the AfterAccept method.

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.