---
description: It represent the state of a network connection (peer)
---

# IPeer

```csharp
public interface INetworkService
{
    IPeer Peer { get; }

    void SendMessage(Message message, DeliveryMethod mode, byte channelId = 0);
}
```

```csharp
public interface IPeer : INetworkService
{
    uint Id { get; }
    PeerStatus Status { get; }
    PeerType Type { get; set; }

    void Disconnect();
    T GetPeer<T>();
}

```
