serviceflowqos.cc
上传用户:hzie11
上传日期:2013-10-07
资源大小:1487k
文件大小:1k
源码类别:

网络

开发平台:

C/C++

  1. /* This software was developed at the National Institute of Standards and
  2.  * Technology by employees of the Federal Government in the course of
  3.  * their official duties. Pursuant to title 17 Section 105 of the United
  4.  * States Code this software is not subject to copyright protection and
  5.  * is in the public domain.
  6.  * NIST assumes no responsibility whatsoever for its use by other parties,
  7.  * and makes no guarantees, expressed or implied, about its quality,
  8.  * reliability, or any other characteristic.
  9.  * <BR>
  10.  * We would appreciate acknowledgement if the software is used.
  11.  * <BR>
  12.  * NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND
  13.  * DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING
  14.  * FROM THE USE OF THIS SOFTWARE.
  15.  * </PRE></P>
  16.  * @author  rouil
  17.  */
  18. #include "serviceflowqos.h"
  19. /**
  20.  * Constructor
  21.  * @param delay The maximum delay for this connection
  22.  * @param datarate The average datarate for the connection
  23.  * @param burstsize The number of byte sent per burst
  24.  */
  25. ServiceFlowQoS::ServiceFlowQoS (int delay, int datarate, int burstsize) {
  26.   delay_ = delay;
  27.   datarate_ = datarate;
  28.   burstsize_ = burstsize;
  29. }