setChannelProvider added

This commit is contained in:
Matej Sekoranja
2011-03-04 20:28:03 +01:00
parent c12c5a8bf8
commit 44cd148610
2 changed files with 13 additions and 0 deletions

View File

@@ -477,6 +477,13 @@ std::string ServerContextImpl::getChannelProviderName()
return _channelProviderName;
}
void ServerContextImpl::setChannelProviderName(std::string channelProviderName)
{
if (_state != NOT_INITIALIZED)
throw std::logic_error("must be called before initialize");
_channelProviderName = channelProviderName;
}
ChannelProvider* ServerContextImpl::getChannelProvider()
{
return _channelProvider;

View File

@@ -252,6 +252,12 @@ public:
*/
std::string getChannelProviderName();
/**
* Set channel provider name.
* This method can only be called before initialize.
*/
void setChannelProviderName(std::string providerName);
/**
* Get channel provider.
* @return channel provider.