Initializer

init(customIPProtocolNumber:)

Initializes parameters for connections and listeners using a custom IP protocol.

Declaration

init(customIPProtocolNumber: UInt8)

Discussion

Creating custom IP protocol connections requires the "com.apple.developer.networking.custom-protocol" entitlement.

See Also

Creating Parameters

class var tls: NWParameters

A set of default parameters for connections and listeners that use TLS and TCP.

class var tcp: NWParameters

A set of default parameters for connections and listeners that use TCP.

class var dtls: NWParameters

A set of default parameters for connections and listeners that use DTLS and UDP.

class var udp: NWParameters

A set of default parameters for connections and listeners that use UDP.

init(tls: NWProtocolTLS.Options?, tcp: NWProtocolTCP.Options)

Initializes parameters for TLS connections and listeners with custom TLS and TCP options.

init(dtls: NWProtocolTLS.Options?, udp: NWProtocolUDP.Options)

Initializes parameters for DTLS connections and listeners with custom DTLS and UDP options.

init()

Initializes parameters for connections, listeners, and browsers with no protocols specified.

func copy() -> NWParameters

Peforms a deep copy of a parameters object.

var debugDescription: String

A summarized description of the parameters.