public static void SettingWndSize(this KcpKit kcp, WndSizeConfig config) { kcp.SettingWndSize(config.sndwnd, config.rcvwnd); }
public static void SettingStreamMode(this KcpKit kcp, bool? enabled) { if (enabled == null) return; kcp.SettingStreamMode(enabled.Value); }
public static void SettingNoDelay(this KcpKit kcp, NoDelayConfig config) { kcp.SettingNoDelay(config.nodelay_, config.interval_, config.resend_, config.nc_); }
public static void SettingReservedSize(this KcpKit kcp, int? reservedSize) { if (reservedSize == null) return; kcp.SettingReserveBytes(reservedSize.Value); }
public static void SettingMtu(this KcpKit kcp, int? mtu) { if (mtu == null) return; kcp.SettingMtu(mtu.Value); }