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

📄 bandwidthinstanceobject.cpp

📁 270的linux说明
💻 CPP
📖 第 1 页 / 共 3 页
字号:
{	bool bRtn = false;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				wsParams.append(IntelMobileText(","));				wsParams.append(CStringHelper::Param2Str(MaxPercentage));				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("SetSessionPercentRx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, bRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("SetSessionPercentRx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("SetSessionPercentRx"));	return bRtn;} // SetSessionPercentRx()//==============================================================================// GetSessionLimitTx()//==============================================================================float Intel::Mobile::Context::BandwidthInstance::GetSessionLimitTx( SOCKET socketid ){	float fRtn = 0.0;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetSessionLimitTx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, fRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionLimitTx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionLimitTx"));	return fRtn;} // GetSessionLimitTx()//==============================================================================// GetSessionLimitRx()//==============================================================================float Intel::Mobile::Context::BandwidthInstance::GetSessionLimitRx( SOCKET socketid ){	float fRtn = 0.0;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetSessionLimitRx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, fRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionLimitRx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionLimitRx"));	return fRtn;} // GetSessionLimitRx()//==============================================================================// GetSessionRateTx()//==============================================================================float Intel::Mobile::Context::BandwidthInstance::GetSessionRateTx( SOCKET socketid ){	float fRtn = 0.0;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetSessionRateTx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, fRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionRateTx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionRateTx"));	return fRtn;} // GetSessionRateTx()//==============================================================================// GetSessionRateRx()//==============================================================================float Intel::Mobile::Context::BandwidthInstance::GetSessionRateRx( SOCKET socketid ){	float fRtn = 0.0;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetSessionRateRx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, fRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionRateRx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionRateRx"));	return fRtn;} // GetSessionRateRx()//==============================================================================// GetEffectiveSessionLimitTx()//==============================================================================float Intel::Mobile::Context::BandwidthInstance::GetEffectiveSessionLimitTx( SOCKET socketid ){	float fRtn = 0.0;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetEffectiveSessionLimitTx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, fRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetEffectiveSessionLimitTx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetEffectiveSessionLimitTx"));	return fRtn;} // GetEffectiveSessionLimitTx()//==============================================================================// GetEffectiveSessionLimitRx()//==============================================================================float Intel::Mobile::Context::BandwidthInstance::GetEffectiveSessionLimitRx( SOCKET socketid ){	float fRtn = 0.0;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetEffectiveSessionLimitRx"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, fRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetEffectiveSessionLimitRx"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetEffectiveSessionLimitRx"));	return fRtn;} // GetEffectiveSessionLimitRx()//==============================================================================// GetSessionAdaptivelyLimitable()//==============================================================================bool Intel::Mobile::Context::BandwidthInstance::GetSessionAdaptivelyLimitable( SOCKET socketid ){	bool bRtn = false;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetSessionAdaptivelyLimitable"), (IntelMobileChar*)wsParams.c_str());				wsRtn = infoString;				CStringHelper::Str2Param(wsRtn, bRtn);				delete []infoString;			} CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionAdaptivelyLimitable"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Context::BandwidthInstance"), IntelMobileText("GetSessionAdaptivelyLimitable"));	return bRtn;} // GetSessionAdaptivelyLimitable()//==============================================================================// GetSessionAdaptive()//==============================================================================bool Intel::Mobile::Context::BandwidthInstance::GetSessionAdaptive( SOCKET socketid ){	bool bRtn = false;	if (m_pImpl)	{		Intel::Mobile::BaseAPI::InstanceObject *pAPI_Instance = reinterpret_cast<Intel::Mobile::BaseAPI::InstanceObject *>(m_pImpl);		if (pAPI_Instance)		{			TRYBLOCK {				//vector<IntelMobileString> vectParam;				UINT64 ui64SockKey = CreateSocketKey(socketid);				//vectParam.push_back(CStringHelper::Param2Str(ui64SockKey));				IntelMobileString wsParams = CStringHelper::Param2Str(ui64SockKey), wsRtn;				IntelMobileChar* infoString = pAPI_Instance->InvokeMethod( IntelMobileText("GetSessionAdaptive"), (IntelMobileChar*)wsParams.c_str());

⌨️ 快捷键说明

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