One Logo Pool Ball
Network · IOS API REFERENCE

NWProtocolIP.Metadata

class · iOS 12.0+ · SDK 27.1

class Metadata

IP Metadata can be sent or received as part of ContentContext

Members (8)

get · iOS 12.0+

receiveTime

TypeScript
get receiveTime(): number
Swift declaration
var receiveTime: UInt64 { get }

The time at which a packet was received, in nanoseconds. Equivalent to timestamps returned by CLOCK_MONOTONIC_RAW.

get · iOS 12.0+

serviceClass

TypeScript
get serviceClass(): NWParameters_ServiceClass
Swift declaration
var serviceClass: NWParameters.ServiceClass { get set }

Set the network service class to be sent on a packet. The per-packet service class will not take effect for protocols such as TCP that deliver data without accounting for packet boundaries. If you need to set service class for TCP, use the serviceClass property of NWParameters.

set · iOS 12.0+

serviceClass

TypeScript
set serviceClass(value: NWParameters_ServiceClass)
Swift declaration
var serviceClass: NWParameters.ServiceClass { get set }

Set the network service class to be sent on a packet. The per-packet service class will not take effect for protocols such as TCP that deliver data without accounting for packet boundaries. If you need to set service class for TCP, use the serviceClass property of NWParameters.

method · iOS 26.0+

serviceClass

TypeScript
serviceClass28776(serviceClass: NWParameters_ServiceClass): NWProtocolIP_Metadata
Swift declaration
func serviceClass(_ serviceClass: NWParameters.ServiceClass) -> Self
get · iOS 12.0+

ecn

TypeScript
get ecn(): NWProtocolIP_ECN
Swift declaration
var ecn: NWProtocolIP.ECN { get set }

Set ECN flags to be sent on a packet, or get ECN flags received on a packet. These flags will not take effect for protocols such as TCP that deliver data without accounting for packet boundaries.

set · iOS 12.0+

ecn

TypeScript
set ecn(value: NWProtocolIP_ECN)
Swift declaration
var ecn: NWProtocolIP.ECN { get set }

Set ECN flags to be sent on a packet, or get ECN flags received on a packet. These flags will not take effect for protocols such as TCP that deliver data without accounting for packet boundaries.

method · iOS 26.0+

ecn

TypeScript
ecn61475(ecn: NWProtocolIP_ECN): NWProtocolIP_Metadata
Swift declaration
func ecn(_ ecn: NWProtocolIP.ECN) -> Self
init · iOS 12.0+

init

TypeScript
static init(): NWProtocolIP_Metadata
Swift declaration
init()

Create an empty IP metadata to send with ContentContext

Skipped declarations

No declarations were skipped in this snapshot.

All Network types →