---
agentTools:
  projectIndex: https://docs.rainway.com/llms.txt
---

# .NET SDK - PeerState

# PeerState enumeration

The connectivity state of a peer

```csharp
public enum PeerState
```

## Values

| name         | value | description                                                       |
| ------------ | ----- | ----------------------------------------------------------------- |
| New          | `0`   | The peer is waiting for the host to allow the connection.         |
| Connecting   | `1`   | The peer is attempting to establish a P2P connection to the host. |
| Connected    | `2`   | The peer is connected to the host.                                |
| Disconnected | `3`   | The peer has disconnected from the host.                          |
| Failed       | `4`   | The peer failed to establish a P2P connection.                    |

## See Also

* namespace [Rainway.SDK](./net-sdk)