mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 05:44:34 +01:00
Init enter game
This commit is contained in:
34
KcpSharp/Base/KcpRawChannelOptions.cs
Normal file
34
KcpSharp/Base/KcpRawChannelOptions.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace KianaBH.KcpSharp.Base;
|
||||
|
||||
/// <summary>
|
||||
/// Options used to control the behaviors of <see cref="KcpRawChannelOptions" />.
|
||||
/// </summary>
|
||||
public sealed class KcpRawChannelOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// The buffer pool to rent buffer from.
|
||||
/// </summary>
|
||||
public IKcpBufferPool? BufferPool { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum packet size that can be transmitted over the underlying transport.
|
||||
/// </summary>
|
||||
public int Mtu { get; set; } = 1400;
|
||||
|
||||
/// <summary>
|
||||
/// The number of packets in the receive queue.
|
||||
/// </summary>
|
||||
public int ReceiveQueueSize { get; set; } = 32;
|
||||
|
||||
/// <summary>
|
||||
/// The number of bytes to reserve at the start of buffer passed into the underlying transport. The transport should
|
||||
/// fill this reserved space.
|
||||
/// </summary>
|
||||
public int PreBufferSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of bytes to reserve at the end of buffer passed into the underlying transport. The transport should fill
|
||||
/// this reserved space.
|
||||
/// </summary>
|
||||
public int PostBufferSize { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user