Listening Property

If True, the component accepts incoming connections on LocalPort.

Syntax

public var listening: Bool {
get {...}
set {...} }

Default Value

False

Remarks

Use this property to make the class 'listen' (accept connections) on the port specified by the LocalPort property. Setting this property to False will make the class stop listening (please note that this does not close any existing connections).

If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:

public func setListening(listening: Bool) throws

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 macOS Edition - Version 20.0 [Build 8307]