Supercell.GUT/Supercell.GUT.Server/Network/IProtocolEntity.cs
BreadDEV ad23f95319 [v0.0.1] very early state server
only basic messages, wip.
2024-03-04 20:19:32 +07:00

10 lines
No EOL
329 B
C#

using System.Net;
namespace Supercell.GUT.Server.Network;
public interface IProtocolEntity : IDisposable
{
EndPoint RemoteEndPoint { get; }
ValueTask<int> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken);
ValueTask<int> SendAsync(Memory<byte> buffer, CancellationToken cancellationToken);
}