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:
25
KcpSharp/Base/IKcpConversation.cs
Normal file
25
KcpSharp/Base/IKcpConversation.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace KianaBH.KcpSharp.Base;
|
||||
|
||||
/// <summary>
|
||||
/// A conversation or a channel over the transport.
|
||||
/// </summary>
|
||||
public interface IKcpConversation : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Put message into the receive queue of the channel.
|
||||
/// </summary>
|
||||
/// <param name="packet">
|
||||
/// The packet content with the optional conversation ID. This buffer should not contain space for
|
||||
/// pre-buffer and post-buffer.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">The token to cancel this operation.</param>
|
||||
/// <returns>A <see cref="ValueTask" /> that completes when the packet is put into the receive queue.</returns>
|
||||
ValueTask InputPakcetAsync(UdpReceiveResult packet, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Mark the underlying transport as closed. Abort all active send or receive operations.
|
||||
/// </summary>
|
||||
void SetTransportClosed();
|
||||
}
|
||||
Reference in New Issue
Block a user