One Logo Pool Ball
Network · IOS API REFERENCE

NWProtocolIP.Options

class · iOS 12.0+ · SDK 27.1

class Options

Members (14)

get · iOS 12.0+

useMinimumMTU

TypeScript
get useMinimumMTU(): boolean
Swift declaration
var useMinimumMTU: Bool { get set }

Configure IP to use the minimum MTU value, which is 1280 bytes for IPv6 (IPV6_USE_MIN_MTU). This value has no effect for IPv4.

set · iOS 12.0+

useMinimumMTU

TypeScript
set useMinimumMTU(value: boolean)
Swift declaration
var useMinimumMTU: Bool { get set }

Configure IP to use the minimum MTU value, which is 1280 bytes for IPv6 (IPV6_USE_MIN_MTU). This value has no effect for IPv4.

get · iOS 12.0+

disableFragmentation

TypeScript
get disableFragmentation(): boolean
Swift declaration
var disableFragmentation: Bool { get set }

Configure IP to disable fragmentation on outgoing packets.

set · iOS 12.0+

disableFragmentation

TypeScript
set disableFragmentation(value: boolean)
Swift declaration
var disableFragmentation: Bool { get set }

Configure IP to disable fragmentation on outgoing packets.

get · iOS 14.0+

localAddressPreference

TypeScript
get localAddressPreference(): NWProtocolIP_Options_AddressPreference
Swift declaration
var localAddressPreference: NWProtocolIP.Options.AddressPreference { get set }

Specify a preference for how to select local addresses for outbound connections.

set · iOS 14.0+

localAddressPreference

TypeScript
set localAddressPreference(value: NWProtocolIP_Options_AddressPreference)
Swift declaration
var localAddressPreference: NWProtocolIP.Options.AddressPreference { get set }

Specify a preference for how to select local addresses for outbound connections.

get · iOS 14.0+

disableMulticastLoopback

TypeScript
get disableMulticastLoopback(): boolean
Swift declaration
var disableMulticastLoopback: Bool { get set }

By default, a multicast packet sent to a group to which the sending host itself belongs will be looped back for local delivery. `disableMulticastLoopback`disables this behavior and, if set, multicast packets will not be looped back to the sender. Only applies to multicast packets.

set · iOS 14.0+

disableMulticastLoopback

TypeScript
set disableMulticastLoopback(value: boolean)
Swift declaration
var disableMulticastLoopback: Bool { get set }

By default, a multicast packet sent to a group to which the sending host itself belongs will be looped back for local delivery. `disableMulticastLoopback`disables this behavior and, if set, multicast packets will not be looped back to the sender. Only applies to multicast packets.

get · iOS 12.0+

shouldCalculateReceiveTime

TypeScript
get shouldCalculateReceiveTime(): boolean
Swift declaration
var shouldCalculateReceiveTime: Bool { get set }

Configure IP to calculate receive time for inbound packets.

set · iOS 12.0+

shouldCalculateReceiveTime

TypeScript
set shouldCalculateReceiveTime(value: boolean)
Swift declaration
var shouldCalculateReceiveTime: Bool { get set }

Configure IP to calculate receive time for inbound packets.

get · iOS 12.0+

version

TypeScript
get version(): NWProtocolIP_Options_Version
Swift declaration
var version: NWProtocolIP.Options.Version { get set }

Specify a single version of the Internet NWProtocol to allow. Setting this value will constrain which address endpoints can be used, and will filter DNS results during connection establishment.

set · iOS 12.0+

version

TypeScript
set version(value: NWProtocolIP_Options_Version)
Swift declaration
var version: NWProtocolIP.Options.Version { get set }

Specify a single version of the Internet NWProtocol to allow. Setting this value will constrain which address endpoints can be used, and will filter DNS results during connection establishment.

get · iOS 12.0+

hopLimit

TypeScript
get hopLimit(): number
Swift declaration
var hopLimit: UInt8 { get set }

Configure the IP hop limit, equivalent to IP_TTL for IPv4 and IPV6_HOPLIMIT for IPv6.

set · iOS 12.0+

hopLimit

TypeScript
set hopLimit(value: number)
Swift declaration
var hopLimit: UInt8 { get set }

Configure the IP hop limit, equivalent to IP_TTL for IPv4 and IPV6_HOPLIMIT for IPv6.

Skipped declarations

No declarations were skipped in this snapshot.

All Network types →