mustangman96
Programmer
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)
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)