<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NetworkListener/State",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network0A8ListenerC5StateO"
  },
  "title" : "NetworkListener.State"
}
-->

# NetworkListener.State

```
enum State
```

## Topics

### Enumeration Cases

[`case cancelled`](/documentation/Network/NetworkListener/State/cancelled)

Cancelled listeners have been invalidated by the client and will send no more events

[`case failed(NWError)`](/documentation/Network/NetworkListener/State/failed(_:))

Failed listeners are no longer able to receive incoming connections

[`case ready`](/documentation/Network/NetworkListener/State/ready)

Ready listeners are able to receive incoming connections
Bonjour service may not yet be registered

[`case setup`](/documentation/Network/NetworkListener/State/setup)

Prior to start, the listener will be in the setup state

[`case waiting(NWError)`](/documentation/Network/NetworkListener/State/waiting(_:))

Waiting listeners do not have a viable network

## Relationships

### Conforms To

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

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

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

---

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)