Internet Direct (Indy)
Home
PreviousUpNext
TIdCmdTCPServer.MaxConnectionReply Property

Response used when the maximum number of client connections is exceeded.

Pascal
property MaxConnectionReply: TIdReply;

MaxConnectionReply is a TIdReply property that represents the response used when the maximum number of client connections to the server is exceeded. MaxConnections indicates the connection limit for the server implementation. 

The default value for the MaxConnectionReply property is assigned during during initialization of the component using the following response code and text: 

 

Code 
Text 
300 
Too many connections. Try again later. 

 

MaxConnectionReply is used when a listener thread for the server cannot accept a new connection when the new connection would exceeed the value in MaxConnections. The generated reply from MaxConnectionReply is written using the IOHandler for the listener thread, and the client connection is Disconnected. 

Resources allocated to the MaxConnectionReply property during component initialization are freed in the Destroy 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.