---
title: "nw_parameters_create_secure_tcp(_:_:)"
framework: network
role: symbol
role_heading: Function
path: "network/nw_parameters_create_secure_tcp(_:_:)"
---

# nw_parameters_create_secure_tcp(_:_:)

Initializes parameters for TLS or TCP connections and listeners.

## Declaration

```swift
func nw_parameters_create_secure_tcp(_ configure_tls: @escaping nw_parameters_configure_protocol_block_t, _ configure_tcp: @escaping nw_parameters_configure_protocol_block_t) -> nw_parameters_t
```

## Discussion

Discussion This function allows you to either use the default configurations for TLS and TCP, or use customized protocol options. If you want to use the default configuration, pass NW_PARAMETERS_DEFAULT_CONFIGURATION. If you want to customize the options for a protocol, pass a block to modify the options. If you need to disable TLS, pass NW_PARAMETERS_DISABLE_PROTOCOL.

## See Also

### Creating Parameters

- [nw_parameters_create_secure_udp(_:_:)](network/nw_parameters_create_secure_udp(_:_:).md)
- [nw_parameters_create_quic(_:)](network/nw_parameters_create_quic(_:).md)
- [nw_parameters_configure_protocol_block_t](network/nw_parameters_configure_protocol_block_t.md)
- [nw_parameters_create()](network/nw_parameters_create().md)
- [nw_parameters_create_custom_ip(_:_:)](network/nw_parameters_create_custom_ip(_:_:).md)
- [nw_parameters_copy(_:)](network/nw_parameters_copy(_:).md)
