ServerSocket.MinimumSocketsAvailable

From Xojo Documentation

Property (As Integer )
aServerSocket.MinimumSocketsAvailable = newIntegerValue
or
IntegerValue = aServerSocket.MinimumSocketsAvailable

Supported for all project types and targets.

The smallest number of sockets available in the server's pool of socket connections.

Notes

If the ServerSocket falls below this number, it will call the AddSocket event to replenish its supply of sockets.

Default value:

  • When instantiated in code, this defaults to 1. Starting with 2017r2, this defaults to 2.
  • When a ServerSocket is dragged onto the Window, this defaults to 2.

Example

This example sets the MaximumSocketsConnected and MinimumSocketsAvailable properties.

mServerSocket.MaximumSocketsConnected = 25
mServerSocket.MinimumSocketsAvailable = 2