NahidaImpact/NahidaImpact.Gameserver/Network/INetworkUnit.cs
2024-01-04 16:48:39 +03:00

10 lines
329 B
C#

using System.Net;
namespace NahidaImpact.Gameserver.Network;
internal interface INetworkUnit : IDisposable
{
IPEndPoint RemoteEndPoint { get; }
ValueTask<int> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken);
ValueTask SendAsync(Memory<byte> buffer, CancellationToken cancellationToken);
}