FurinaImpact/FurinaImpact.Gameserver/Network/INetworkUnit.cs

11 lines
329 B
C#
Raw Normal View History

2023-12-09 03:45:08 +00:00
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);
}