Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TIdTCPServer - MaxConnections problem

Status
Not open for further replies.

mustangman96

Programmer
Apr 23, 2003
14
HU
I have to write a simple TCP server with limited connections.
It works with MaxConnections = 0 (unlimited connections) perfectly.
But if I try to limit the number of connections e.g. MaxConnections = 1, the following happens:
1. The first computer connects.
2. The second computer tries to connect and gets the MaxConnectionReply.Text.
3. The server raises an exception class EThread with message: Thread Error (6).

Can somebody help me how to handle this error?
(I use the TIdTCPServer class)
 
Thanks for your help. I've installed the latest version and it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top