NahidaImpact/NahidaImpact.Gameserver/Network/INetworkUnit.cs

11 lines
329 B
C#
Raw Normal View History

2024-01-04 13:48:39 +00:00
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);
}