---
title: "NWEndpoint.service(name:type:domain:interface:)"
framework: network
role: symbol
role_heading: Case
path: "network/nwendpoint/service(name:type:domain:interface:)"
---

# NWEndpoint.service(name:type:domain:interface:)

An endpoint represented as a Bonjour service.

## Declaration

```swift
case service(name: String, type: String, domain: String, interface: NWInterface?)
```

## See Also

### Endpoint Types

- [NWEndpoint.hostPort(host:port:)](network/nwendpoint/hostport(host:port:).md)
- [NWEndpoint.url(_:)](network/nwendpoint/url(_:).md)
- [NWEndpoint.unix(path:)](network/nwendpoint/unix(path:).md)
