<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAPublisherListener/DatapathParameters",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware19WAPublisherListenerV18DatapathParametersV"
  },
  "title" : "WAPublisherListener.DatapathParameters"
}
-->

# WAPublisherListener.DatapathParameters

The parameter that sets the initial Wi-Fi Aware data path configuration for any devices that are connected.

```
struct DatapathParameters
```

## Overview

The `DatapathParameters` is an optional “`datapath:`” component of the
`.wifiAware()` instruction to a `NetworkListener`. If you don’t set a
specific parameter, then the system applies the default parameters with bulk
performance mode.

The code below is an example of how to set a data path configuration:

```swift
NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) datapath: .defaults) )
```

> Important: Each service must have the same ``doc://com.apple.wifiaware/documentation/WiFiAware/WAPerformanceMode`` on both the `NetworkBrowser` (subscriber) and `NetworkListener` (publisher) sides of the connection, or the resulting performance behavior is undefined. If not specified, the performance mode defaults to ``doc://com.apple.wifiaware/documentation/WiFiAware/WAPerformanceMode/bulk`` on both sides.

## Topics

### Setting performance modes

[`defaults`](/documentation/WiFiAware/WAPublisherListener/DatapathParameters/defaults)

The property that configures default parameters that prioritize bulk throughput, power consumption, and other concurrent Wi-Fi use cases.

[`realtime`](/documentation/WiFiAware/WAPublisherListener/DatapathParameters/realtime)

Parameters that prioritize latency at the expense of throughput, power consumption, and other concurrent Wi-Fi use cases and devices.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)