Fantasy
搜索结果

    显示/隐藏目录

    Kcp 类

    Kcp

    继承
    object
    Kcp
    实现
    IDisposable
    继承成员
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: KCP
    程序集: Fantasy.Net.dll
    语法
    public sealed class Kcp : IDisposable

    构造函数

    | 编辑本文 查看源代码

    Kcp(KcpCallback)

    Structure

    声明
    public Kcp(KcpCallback output)
    参数
    类型 名称 描述
    KcpCallback output

    Output

    | 编辑本文 查看源代码

    Kcp(uint, KcpCallback)

    Structure

    声明
    public Kcp(uint conv, KcpCallback output)
    参数
    类型 名称 描述
    uint conv

    ConversationId

    KcpCallback output

    Output

    属性

    | 编辑本文 查看源代码

    AckBlock

    Number of acknowledge blocks

    声明
    public uint AckBlock { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    AckCount

    Count of acknowledges

    声明
    public uint AckCount { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    AckList

    Pointer to the acknowledge list

    声明
    public uint* AckList { get; }
    属性值
    类型 描述
    uint*
    | 编辑本文 查看源代码

    Buffer

    Buffer

    声明
    public byte[] Buffer { get; }
    属性值
    类型 描述
    byte[]
    | 编辑本文 查看源代码

    CongestionWindowSize

    Congestion window size

    声明
    public uint CongestionWindowSize { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    ConversationId

    Conversation id

    声明
    public uint ConversationId { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    Current

    Current timestamp

    声明
    public uint Current { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    FastResend

    Fast resend trigger count

    声明
    public int FastResend { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    FastResendLimit

    Fast resend limit

    声明
    public int FastResendLimit { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    Increment

    Incremental increase

    声明
    public uint Increment { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    Interval

    Flush interval

    声明
    public uint Interval { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    IsSet

    Set

    声明
    public bool IsSet { get; }
    属性值
    类型 描述
    bool
    | 编辑本文 查看源代码

    MaximumSegmentSize

    Maximum segment size

    声明
    public uint MaximumSegmentSize { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    MaximumTransmissionUnit

    Maximum transmission unit

    声明
    public uint MaximumTransmissionUnit { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    NoCongestionWindow

    Whether congestion control is disabled

    声明
    public int NoCongestionWindow { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    NoDelay

    Whether Nagle's algorithm is disabled

    声明
    public uint NoDelay { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    Output

    Output function pointer

    声明
    public KcpCallback Output { get; }
    属性值
    类型 描述
    KcpCallback
    | 编辑本文 查看源代码

    Probe

    Probe variable for fast recovery

    声明
    public uint Probe { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    ProbeWait

    Probe wait time

    声明
    public uint ProbeWait { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    ReceiveBufferCount

    Number of packets in the receive buffer

    声明
    public uint ReceiveBufferCount { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    ReceiveNext

    The sequence number for the next packet expected to be received

    声明
    public uint ReceiveNext { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    ReceiveQueueCount

    Number of packets in the receive queue

    声明
    public uint ReceiveQueueCount { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    ReceiveWindowSize

    Receive window size

    声明
    public uint ReceiveWindowSize { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    RemoteWindowSize

    Remote window size

    声明
    public uint RemoteWindowSize { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    RxMinrto

    Minimum retransmission timeout

    声明
    public int RxMinrto { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    RxRto

    Retransmission timeout

    声明
    public int RxRto { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    RxRttval

    Round-trip time variance

    声明
    public int RxRttval { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    RxSrtt

    Smoothed round-trip time

    声明
    public int RxSrtt { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    SendBufferCount

    Number of packets in the send buffer

    声明
    public uint SendBufferCount { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    SendNext

    The sequence number for the next packet to be sent

    声明
    public uint SendNext { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    SendQueueCount

    Number of packets in the send queue

    声明
    public uint SendQueueCount { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    SendUna

    The sequence number of the first unacknowledged packet

    声明
    public uint SendUna { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    SendWindowSize

    Send window size

    声明
    public uint SendWindowSize { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    SlowStartThreshold

    Slow start threshold for congestion control

    声明
    public uint SlowStartThreshold { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    State

    Connection state

    声明
    public int State { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    StreamMode

    Whether stream mode is enabled

    声明
    public int StreamMode { get; }
    属性值
    类型 描述
    int
    | 编辑本文 查看源代码

    TimestampFlush

    Timestamp for the next flush

    声明
    public uint TimestampFlush { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    TimestampProbe

    Timestamp for the next probe

    声明
    public uint TimestampProbe { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    Transmissions

    Number of retransmissions

    声明
    public uint Transmissions { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    Updated

    Whether the KCP connection has been updated

    声明
    public uint Updated { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    WaitReceiveCount

    Number of packets wait to receive

    声明
    public uint WaitReceiveCount { get; }
    属性值
    类型 描述
    uint
    | 编辑本文 查看源代码

    WaitSendCount

    Number of packets wait to send

    声明
    public uint WaitSendCount { get; }
    属性值
    类型 描述
    uint

    方法

    | 编辑本文 查看源代码

    Check(uint)

    Check

    声明
    public uint Check(uint current)
    参数
    类型 名称 描述
    uint current

    Timestamp

    返回
    类型 描述
    uint

    Next flush timestamp

    | 编辑本文 查看源代码

    Dispose()

    Dispose

    声明
    public void Dispose()
    | 编辑本文 查看源代码

    ~Kcp()

    Destructure

    声明
    protected ~Kcp()
    | 编辑本文 查看源代码

    Flush()

    Flush

    声明
    public void Flush()
    | 编辑本文 查看源代码

    Input(ArraySegment<byte>)

    Input

    声明
    public int Input(ArraySegment<byte> buffer)
    参数
    类型 名称 描述
    ArraySegment<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(byte*, int)

    Input

    声明
    public int Input(byte* buffer, int length)
    参数
    类型 名称 描述
    byte* buffer

    Buffer

    int length

    Length

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(byte*, int, int)

    Input

    声明
    public int Input(byte* buffer, int offset, int length)
    参数
    类型 名称 描述
    byte* buffer

    Buffer

    int offset

    Offset

    int length

    Length

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(byte[])

    Input

    声明
    public int Input(byte[] buffer)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(byte[], int)

    Input

    声明
    public int Input(byte[] buffer, int length)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    int length

    Length

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(byte[], int, int)

    Input

    声明
    public int Input(byte[] buffer, int offset, int length)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    int offset

    Offset

    int length

    Length

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(ReadOnlyMemory<byte>)

    Input

    声明
    public int Input(ReadOnlyMemory<byte> buffer)
    参数
    类型 名称 描述
    ReadOnlyMemory<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    Input(ReadOnlySpan<byte>)

    Input

    声明
    public int Input(ReadOnlySpan<byte> buffer)
    参数
    类型 名称 描述
    ReadOnlySpan<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Input bytes

    | 编辑本文 查看源代码

    PeekSize()

    Peek size

    声明
    public int PeekSize()
    返回
    类型 描述
    int

    Peeked size

    | 编辑本文 查看源代码

    Receive(ArraySegment<byte>)

    Receive

    声明
    public int Receive(ArraySegment<byte> buffer)
    参数
    类型 名称 描述
    ArraySegment<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(byte*, int)

    Receive

    声明
    public int Receive(byte* buffer, int length)
    参数
    类型 名称 描述
    byte* buffer

    Buffer

    int length

    Length

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(byte*, int, int)

    Receive

    声明
    public int Receive(byte* buffer, int offset, int length)
    参数
    类型 名称 描述
    byte* buffer

    Buffer

    int offset

    Offset

    int length

    Length

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(byte[])

    Receive

    声明
    public int Receive(byte[] buffer)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(byte[], int)

    Receive

    声明
    public int Receive(byte[] buffer, int length)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    int length

    Length

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(byte[], int, int)

    Receive

    声明
    public int Receive(byte[] buffer, int offset, int length)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    int offset

    Offset

    int length

    Length

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(Memory<byte>)

    Receive

    声明
    public int Receive(Memory<byte> buffer)
    参数
    类型 名称 描述
    Memory<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Receive(Span<byte>)

    Receive

    声明
    public int Receive(Span<byte> buffer)
    参数
    类型 名称 描述
    Span<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Received bytes

    | 编辑本文 查看源代码

    Send(ArraySegment<byte>)

    Send

    声明
    public int Send(ArraySegment<byte> buffer)
    参数
    类型 名称 描述
    ArraySegment<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(byte*, int)

    Send

    声明
    public int Send(byte* buffer, int length)
    参数
    类型 名称 描述
    byte* buffer

    Buffer

    int length

    Length

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(byte*, int, int)

    Send

    声明
    public int Send(byte* buffer, int offset, int length)
    参数
    类型 名称 描述
    byte* buffer

    Buffer

    int offset

    Offset

    int length

    Length

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(byte[])

    Send

    声明
    public int Send(byte[] buffer)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(byte[], int)

    Send

    声明
    public int Send(byte[] buffer, int length)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    int length

    Length

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(byte[], int, int)

    Send

    声明
    public int Send(byte[] buffer, int offset, int length)
    参数
    类型 名称 描述
    byte[] buffer

    Buffer

    int offset

    Offset

    int length

    Length

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(ReadOnlyMemory<byte>)

    Send

    声明
    public int Send(ReadOnlyMemory<byte> buffer)
    参数
    类型 名称 描述
    ReadOnlyMemory<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    Send(ReadOnlySpan<byte>)

    Send

    声明
    public int Send(ReadOnlySpan<byte> buffer)
    参数
    类型 名称 描述
    ReadOnlySpan<byte> buffer

    Buffer

    返回
    类型 描述
    int

    Sent bytes

    | 编辑本文 查看源代码

    SetFastResendLimit(int)

    Set fast resend limit

    声明
    public void SetFastResendLimit(int fastlimit)
    参数
    类型 名称 描述
    int fastlimit

    Fast resend limit

    | 编辑本文 查看源代码

    SetInterval(int)

    Set flush interval

    声明
    public void SetInterval(int interval)
    参数
    类型 名称 描述
    int interval

    Flush interval

    | 编辑本文 查看源代码

    SetMinrto(int)

    Set minimum retransmission timeout

    声明
    public void SetMinrto(int minrto)
    参数
    类型 名称 描述
    int minrto

    Minimum retransmission timeout

    | 编辑本文 查看源代码

    SetMtu(int)

    Set maximum transmission unit

    声明
    public int SetMtu(int mtu)
    参数
    类型 名称 描述
    int mtu

    Maximum transmission unit

    返回
    类型 描述
    int

    Set

    | 编辑本文 查看源代码

    SetNoDelay(int, int, int, int)

    Set no delay

    声明
    public void SetNoDelay(int nodelay, int interval, int resend, int nc)
    参数
    类型 名称 描述
    int nodelay

    Whether Nagle's algorithm is disabled

    int interval

    Flush interval

    int resend

    Fast resend trigger count

    int nc

    No congestion window

    | 编辑本文 查看源代码

    SetOutput(KcpCallback)

    Set output

    声明
    public void SetOutput(KcpCallback output)
    参数
    类型 名称 描述
    KcpCallback output

    Output

    | 编辑本文 查看源代码

    SetStreamMode(int)

    Set whether stream mode is enabled

    声明
    public void SetStreamMode(int stream)
    参数
    类型 名称 描述
    int stream

    Whether stream mode is enabled

    | 编辑本文 查看源代码

    SetWindowSize(int, int)

    Set window size

    声明
    public void SetWindowSize(int sndwnd, int rcvwnd)
    参数
    类型 名称 描述
    int sndwnd

    Send window size

    int rcvwnd

    Receive window size

    | 编辑本文 查看源代码

    Update(uint)

    Update

    声明
    public void Update(uint current)
    参数
    类型 名称 描述
    uint current

    Timestamp

    实现

    IDisposable

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX