Instance Property


The viability of a TCP connection indicates whether or not data can be transferred


var isViable: Bool { get }


Evaluates to true if the connection can read and write data, false otherwise. Use Key-Value Observing to watch this property.

See Also

Monitoring the Connection Status

var state: NWTCPConnectionState

The status of the connection

enum NWTCPConnectionState

Defined connection states. New types may be defined in the future.

var error: Error?

The connection-wide error property