⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 context_bandwidthinstanceobject.h

📁 270的linux说明
💻 H
字号:
/*

Copyright (c) 2008, Intel Corporation. 

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:


    * Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

    * Neither the name of Intel Corporation nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

*/#pragma once#include "inc/framework/base_InstanceObject.h"class ServerBandwidthInstanceObject;// system level propertiesCLASSEXPANSION      ( BandwidthTheoreticalSystemRateTxClass,  IntelMobileFloat,   "TheoreticalSystemRateTx",  false, false, 5000 );CLASSEXPANSION      ( BandwidthTheoreticalSystemRateRxClass,  IntelMobileFloat,   "TheoreticalSystemRateRx",  false, false, 5000 );CLASSEXPANSION      ( BandwidthSystemRateTxClass,             IntelMobileFloat,   "SystemRateTx",             false, false, 5000 );CLASSEXPANSION      ( BandwidthSystemRateRxClass,             IntelMobileFloat,   "SystemRateRx",             false, false, 5000 );CLASSEXPANSION      ( BandwidthFastestProtocolClass,          IntelMobileString,  "FastestProtocol",          false, false, 5000 );// process level propertiesCLASSEXPANSION_SET_P    ( BandwidthLimitTxClass,              IntelMobileFloat,   "LimitTx",                  true,  false, 5000 );CLASSEXPANSION_SET_P    ( BandwidthLimitRxClass,              IntelMobileFloat,   "LimitRx",                  true,  false, 5000 );CLASSEXPANSION_SET_P    ( BandwidthPercentTxClass,            IntelMobileFloat,   "PercentTx",                true,  false, 5000 );CLASSEXPANSION_SET_P    ( BandwidthPercentRxClass,            IntelMobileFloat,   "PercentRx",                true,  false, 5000 );CLASSEXPANSION_P        ( BandwidthRateTxClass,               IntelMobileFloat,   "RateTx",                   false, false, 5000 );CLASSEXPANSION_P        ( BandwidthRateRxClass,               IntelMobileFloat,   "RateRx",                   false, false, 5000 );CLASSEXPANSION_SET_P    ( BandwidthLimitedTxClass,            IntelMobileBool,    "LimitedTx",                true,  false, 5000 );CLASSEXPANSION_SET_P    ( BandwidthLimitedRxClass,            IntelMobileBool,    "LimitedRx",                true,  false, 5000 );CLASSEXPANSION_SET_P    ( BandwidthAdaptiveClass,             IntelMobileBool,    "Adaptive",                 true,  false, 5000 );CLASSEXPANSION_P        ( BandwidthAdaptivelyLimitableClass,  IntelMobileBool,    "AdaptivelyLimitable",      false, false, 5000 );class ServerBandwidthInstanceObject : public ServerInstanceObject{public:    //		   Remove Logger from server objects.    //         Removed redundant constructor and private CLog* member    //             ServerBandwidthInstanceObject( const IntelMobileString& szKey, CLog& theLog, const IntelMobileString sType = IntelMobileText("Bandwidth") );    virtual ~ServerBandwidthInstanceObject()    {    }public:    // Properties    BandwidthTheoreticalSystemRateTxClass  TheoreticalSystemRateTx;    BandwidthTheoreticalSystemRateRxClass  TheoreticalSystemRateRx;    BandwidthSystemRateTxClass             SystemRateTx;    BandwidthSystemRateRxClass             SystemRateRx;    BandwidthFastestProtocolClass          FastestProtocol;    BandwidthLimitTxClass                  LimitTx;    BandwidthLimitRxClass                  LimitRx;    BandwidthPercentTxClass                PercentTx;    BandwidthPercentRxClass                PercentRx;    BandwidthRateTxClass                   RateTx;    BandwidthRateRxClass                   RateRx;    BandwidthLimitedTxClass                LimitedTx;    BandwidthLimitedRxClass                LimitedRx;    BandwidthAdaptiveClass                 Adaptive;    BandwidthAdaptivelyLimitableClass      AdaptivelyLimitable;    // Methods    virtual bool  SetSessionLimitTx( unsigned __int64 socketid, float MaxKBitsPerSec) = 0;    virtual bool  SetSessionLimitRx( unsigned __int64 socketid, float MaxKBitsPerSec) = 0;    virtual float GetSessionLimitTx( unsigned __int64 socketid ) = 0;    virtual float GetSessionLimitRx( unsigned __int64 socketid ) = 0;	virtual bool  SetSessionPercentTx( unsigned __int64 socketid, float MaxPercentage ) = 0;    virtual bool  SetSessionPercentRx( unsigned __int64 socketid, float MaxPercentage ) = 0;    virtual float GetSessionPercentTx( unsigned __int64 socketid ) = 0;    virtual float GetSessionPercentRx( unsigned __int64 socketid ) = 0;    virtual bool  SetSessionLimitedTx( unsigned __int64 socketid, bool IsLimited ) = 0;    virtual bool  SetSessionLimitedRx( unsigned __int64 socketid, bool IsLimited ) = 0;    virtual bool  GetSessionLimitedTx( unsigned __int64 socketid ) = 0;    virtual bool  GetSessionLimitedRx( unsigned __int64 socketid ) = 0;	virtual float GetSessionRateTx( unsigned __int64 socketid ) = 0;    virtual float GetSessionRateRx( unsigned __int64 socketid ) = 0;    virtual float GetEffectiveSessionLimitTx( unsigned __int64 socketid ) = 0;    virtual float GetEffectiveSessionLimitRx( unsigned __int64 socketid ) = 0;    virtual bool  GetSessionAdaptivelyLimitable( unsigned __int64 socketid ) = 0;    virtual bool  GetSessionAdaptive( unsigned __int64 socketid ) = 0;    virtual bool  SetSessionAdaptive( unsigned __int64 socketid, bool IsAdaptive ) = 0;    virtual bool  Open() = 0;    virtual bool  Close() = 0;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -