Wolframe, 0.0.3

Local connection endpoint configuration for authorization, connection based timeout, etc. More...

#include <connectionEndpoint.hpp>

Public Types

enum  ProtocolCapability { PasswordChange =0x1, Request =0x2 }
 

Public Member Functions

 LocalEndpointConfig ()
 Default constructor. More...
 
 LocalEndpointConfig (const LocalEndpointConfig &o)
 Copy constructor. More...
 
 LocalEndpointConfig (const std::string &socketIdentifier_)
 Constructor. More...
 
void resetCapabilities ()
 Reset capabilities. More...
 
void setCapability (const std::string &c)
 Set a capability for this local endpoint configuration. More...
 
bool hasCapability (const std::string &c) const
 Ask for a capability for this local endpoint configuration. More...
 

Static Public Member Functions

static const char * protocolCapabilityName (ProtocolCapability c)
 

Public Attributes

std::vector< std::string > capabilities
 
std::string socketIdentifier
 
std::string protocol
 

Detailed Description

Local connection endpoint configuration for authorization, connection based timeout, etc.

Member Enumeration Documentation

Enumerator
PasswordChange 

the user is allowed to change his password

Request 

the user is allowed make requests

Constructor & Destructor Documentation

_Wolframe::net::LocalEndpointConfig::LocalEndpointConfig ( )
inline

Default constructor.

_Wolframe::net::LocalEndpointConfig::LocalEndpointConfig ( const LocalEndpointConfig o)
inline

Copy constructor.

_Wolframe::net::LocalEndpointConfig::LocalEndpointConfig ( const std::string &  socketIdentifier_)
inlineexplicit

Constructor.

Member Function Documentation

bool _Wolframe::net::LocalEndpointConfig::hasCapability ( const std::string &  c) const
inline

Ask for a capability for this local endpoint configuration.

static const char* _Wolframe::net::LocalEndpointConfig::protocolCapabilityName ( ProtocolCapability  c)
inlinestatic
void _Wolframe::net::LocalEndpointConfig::resetCapabilities ( )
inline

Reset capabilities.

void _Wolframe::net::LocalEndpointConfig::setCapability ( const std::string &  c)
inline

Set a capability for this local endpoint configuration.

Member Data Documentation

std::vector<std::string> _Wolframe::net::LocalEndpointConfig::capabilities
std::string _Wolframe::net::LocalEndpointConfig::protocol
std::string _Wolframe::net::LocalEndpointConfig::socketIdentifier

The documentation for this struct was generated from the following file: