
com.barchart.udt.ccc.UDPBlast Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Network Show documentation
Show all versions of Network Show documentation
Encrypted, high-performance, and event-driven/reactive network stack for Java 11+
/**
* Copyright (C) 2009-2013 Barchart, Inc.
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package com.barchart.udt.ccc;
import com.barchart.udt.CCC;
/**
* Wrapper around the CUDPBlast class that demos the use of a custom congestion
* control algorithm
*
* @author CCob
*/
public class UDPBlast extends CCC {
static final int iSMSS = 1500;
public UDPBlast() {
setCWndSize(83333.0);
}
public void setRate(final int mbps) {
setPacketSndPeriod((iSMSS * 8.0) / mbps);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy