<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_parameters_configure_protocol_block_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_parameters_configure_protocol_block_t"
  },
  "title" : "nw_parameters_configure_protocol_block_t"
}
-->

# nw_parameters_configure_protocol_block_t

A block to configure protocol options during the creation of a parameters object.

```
typealias nw_parameters_configure_protocol_block_t = (nw_protocol_options_t) -> Void
```

## Discussion

Passing in a block allows you to customize how a protocol will behave in a connection.

If you want to use the default configuration for a protocol, pass NW_PARAMETERS_DEFAULT_CONFIGURATION.

If you want to disable a protocol (such as TLS), pass NW_PARAMETERS_DISABLE_PROTOCOL. Not all protocols can be disabled.

## See Also

[TCP Options](/documentation/Network/tcp-options)

Configure options for connections that use the Transmission Control Protocol.

[TLS Options](/documentation/Network/tls-options)

Configure options for connections that use Transport Layer Security.

[UDP Options](/documentation/Network/udp-options)

Configure options for connections that use the User Datagram Protocol.



---

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)