001    /**
002     * Copyright (C) 2009-2013 Barchart, Inc. <http://www.barchart.com/>
003     *
004     * All rights reserved. Licensed under the OSI BSD License.
005     *
006     * http://www.opensource.org/licenses/bsd-license.php
007     */
008    package com.barchart.udt.ccc;
009    
010    import com.barchart.udt.CCC;
011    
012    /**
013     * Wrapper around the CUDPBlast class that demos the use of a custom congestion
014     * control algorithm
015     * 
016     * @author CCob
017     */
018    public class UDPBlast extends CCC {
019    
020            static final int iSMSS = 1500;
021    
022            public UDPBlast() {
023                    setCWndSize(83333.0);
024            }
025    
026            public void setRate(final int mbps) {
027                    setPacketSndPeriod((iSMSS * 8.0) / mbps);
028            }
029    
030    }