mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 21:34:43 +01:00
Init enter game
This commit is contained in:
18
KcpSharp/Base/IKcpTransport.cs
Normal file
18
KcpSharp/Base/IKcpTransport.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Net;
|
||||
|
||||
namespace KianaBH.KcpSharp.Base;
|
||||
|
||||
/// <summary>
|
||||
/// A transport to send and receive packets.
|
||||
/// </summary>
|
||||
public interface IKcpTransport
|
||||
{
|
||||
/// <summary>
|
||||
/// Send a packet into the transport.
|
||||
/// </summary>
|
||||
/// <param name="packet">The content of the packet.</param>
|
||||
/// <param name="remoteEndpoint">The remote endpoint</param>
|
||||
/// <param name="cancellationToken">A token to cancel this operation.</param>
|
||||
/// <returns>A <see cref="ValueTask" /> that completes when the packet is sent.</returns>
|
||||
ValueTask SendPacketAsync(Memory<byte> packet, IPEndPoint remoteEndpoint, CancellationToken cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user