Contents

newConnectionLimit

Configure the listener’s new connection limit.

Declaration

final var newConnectionLimit: Int { get set }

Discussion

Use the value NWListener.InfiniteConnectionLimit to disable connection limits.

If the value is not NWListener.InfiniteConnectionLimit, the value will be decremented by 1 every time a new connection is received. When the value reaches 0, the new connection handler will no longer be invoked until the the limit is increased.