Backlog Property  
 

Gets and sets the number of client connections that may be queued by a listening socket.

Syntax

object.Backlog [= backlog ]

Remarks

The Backlog property specifies the maximum size of the queue used to manage pending connections to the server. If the property is set to value which exceeds the maximum size for the underlying service provider, it will be silently adjusted to the nearest legal value. There is no standard way to determine what the maximum backlog value is.

This property must be set to the desired value before the Listen method is called, if the Listen method is used with default parameters. The default backlog value is 5 on all Windows platforms. The Windows Server platforms support a maximum backlog value of 200.

Note that this property does not specify the total number of connections that the server application may accept. It only specifies the size of the backlog queue which is used to manage pending client connections. Once the client connection has been accepted, it is removed from the queue.

Data Type

Integer (Int32)

See Also

IsListening Property, OnAccept Event, Accept Method, Listen Method