ServerSocket.MaximumSocketsConnected
From Xojo Documentation
Property (As Integer )
aServerSocket.MaximumSocketsConnected = newIntegerValue
or
IntegerValue = aServerSocket.MaximumSocketsConnected
Supported for all project types and targets.
or
IntegerValue = aServerSocket.MaximumSocketsConnected
Supported for all project types and targets.
The maximum number of connections the ServerSocket will allow to connect.
Notes
When a socket disconnects from the ServerSocket, the server will allow one more connection.
Default value:
- When instantiated in code, this defaults to 1. Starting with 2017r2, this defaults to 10.
- When a ServerSocket is dragged onto the Window, this defaults to 10.
Sample Code
This example sets the MaximumSocketsConnected and MinimumSocketsAvailable properties.
mServerSocket.MaximumSocketsConnected = 25
mServerSocket.MinimumSocketsAvailable = 2
mServerSocket.MinimumSocketsAvailable = 2