rudpsocketnetworkinformation.cs

来自「破解的飞信源代码」· CS 代码 · 共 56 行

CS
56
字号
namespace NCindy.Protocol.RUDP
{
    using System;

    public sealed class RUDPSocketNetworkInformation
    {
        private RUDPSocket _rudp;

        internal RUDPSocketNetworkInformation(RUDPSocket rudp)
        {
            this._rudp = rudp;
        }

        public long BandWidth
        {
            get
            {
                return this._rudp._bandwidth;
            }
        }

        public double CongestionWindow
        {
            get
            {
                return this._rudp._controlWindow.CWND;
            }
        }

        public int PathMTU
        {
            get
            {
                return this._rudp._mtu;
            }
        }

        public double RTO
        {
            get
            {
                return this._rudp._rto;
            }
        }

        public double RTT
        {
            get
            {
                return this._rudp._rtt;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?