Пример #1
0
 public static void SettingWndSize(this KcpKit kcp, WndSizeConfig config)
 {
     kcp.SettingWndSize(config.sndwnd, config.rcvwnd);
 }
Пример #2
0
        public static void SettingStreamMode(this KcpKit kcp, bool? enabled)
        {
            if (enabled == null) return;

            kcp.SettingStreamMode(enabled.Value);
        }
Пример #3
0
 public static void SettingNoDelay(this KcpKit kcp, NoDelayConfig config)
 {
     kcp.SettingNoDelay(config.nodelay_, config.interval_, config.resend_, config.nc_);
 }
Пример #4
0
        public static void SettingReservedSize(this KcpKit kcp, int? reservedSize)
        {
            if (reservedSize == null) return;

            kcp.SettingReserveBytes(reservedSize.Value);
        }
Пример #5
0
        public static void SettingMtu(this KcpKit kcp, int? mtu)
        {
            if (mtu == null) return;

            kcp.SettingMtu(mtu.Value);
        }