Checks whether a metadata object represents an IP packet.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
Framework
- Network
Declaration
bool nw_protocol_metadata_is_ip(nw _protocol _metadata _t metadata);
Checks whether a metadata object represents an IP packet.
SDKs
Framework
bool nw_protocol_metadata_is_ip(nw _protocol _metadata _t metadata);
nw _ip _create _metadata
Initializes an IP packet configuration with default settings.
nw _ip _metadata _set _ecn _flag
Sets a specific Explicit Congestion Notification flag value to set on an IP packet.
nw _ip _metadata _get _ecn _flag
Checks the Explicit Congestion Notification flag value received on an IP packet.
nw _ip _ecn _flag _t
Flag values for Explicit Congestion Notifications in IP packets.
nw _ip _metadata _set _service _class
Sets a specific service class to mark on an IP packet.
nw _ip _metadata _get _service _class
Accesses a specific service class to mark on an IP packet.
nw _ip _metadata _get _receive _time
Access the time at which a packet was received, in nanoseconds, based on CLOCK
.