---
title: NWListener.Service
framework: network
role: symbol
role_heading: Structure
path: network/nwlistener/service-swift.struct
---

# NWListener.Service

A description used to advertise the Bonjour service that a listener provides.

## Declaration

```swift
struct Service
```

## Topics

### Defining Services

- [init(name:type:domain:txtRecord:)](network/nwlistener/service-swift.struct/init(name:type:domain:txtrecord:)-1lb30.md)
- [init(name:type:domain:txtRecord:)](network/nwlistener/service-swift.struct/init(name:type:domain:txtrecord:)-8qh5.md)
- [noAutoRename](network/nwlistener/service-swift.struct/noautorename.md)

### Inspecting Services

- [name](network/nwlistener/service-swift.struct/name.md)
- [type](network/nwlistener/service-swift.struct/type.md)
- [domain](network/nwlistener/service-swift.struct/domain.md)
- [txtRecordObject](network/nwlistener/service-swift.struct/txtrecordobject.md)
- [txtRecord](network/nwlistener/service-swift.struct/txtrecord.md)

### Initializers

- [init(applicationService:)](network/nwlistener/service-swift.struct/init(applicationservice:).md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Advertising Bonjour Services

- [NSBonjourServices](bundleresources/information-property-list/nsbonjourservices.md)
- [NSLocalNetworkUsageDescription](bundleresources/information-property-list/nslocalnetworkusagedescription.md)
- [service](network/nwlistener/service-swift.property.md)
- [serviceRegistrationUpdateHandler](network/nwlistener/serviceregistrationupdatehandler.md)
- [NWListener.ServiceRegistrationChange](network/nwlistener/serviceregistrationchange.md)
