Instance Property

error

The connection-wide error property

Declaration

@property(readonly) NSError *error;

Discussion

Indicates any fatal error that occurred while processing the connection or performing data reading or writing. Use Key-Value Observing to watch this property.

See Also

Monitoring the Connection Status

state

The status of the connection

NWTCPConnectionState

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

viable

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software