FurinaImpact/FurinaImpact.Gameserver/Network/INetworkUnit.cs
2023-12-09 06:45:08 +03:00

10 lines
329 B
C#

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