# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLNET::CUnifiedNetwork::CUnifiedConnection Class Reference

This may contains a CCallbackClient or a TSockId, depending on which type of connection it is. More...

List of all members.

Public Types

enum  TState { NotUsed, Ready }
 NotUsed = the unified connection is empty, not used Ready = we can use the unified connection. More...


Public Methods

 CUnifiedConnection ()
 CUnifiedConnection (const std::string &name, uint16 id, bool isExternal)
 CUnifiedConnection (const std::string &name, uint16 id, CCallbackClient *cbc)
void reset ()
void setupNetworkAssociation (const std::vector< uint32 > &networkAssociations, const std::vector< std::string > &defaultNetwork)

Public Attributes

std::string ServiceName
 The name of the service (may not be unique). More...

uint16 ServiceId
 The id of the service (is unique). More...

TState State
 If the service entry is used. More...

bool IsExternal
 If the connection is extern to the naming service. More...

bool AutoRetry
 Auto-retry mode. More...

bool SendId
 Auto identify at connection. More...

uint AutoCheck
 Used for debug purpose. More...

std::vector< CInetAddressExtAddress
 The external connection address. More...

std::vector< TConnectionConnection
 Connection to the service (me be > 1). More...

std::vector< uint8NetworkConnectionAssociations
 This is used to associate a nid (look addNetworkAssociation) with a TConnection. More...

uint8 DefaultNetwork
 This contains the connection id that will be used for default network, it's a connection id used for Connection index. More...


Detailed Description

This may contains a CCallbackClient or a TSockId, depending on which type of connection it is.

Definition at line 240 of file unified_network.h.


Member Enumeration Documentation

enum NLNET::CUnifiedNetwork::CUnifiedConnection::TState
 

NotUsed = the unified connection is empty, not used Ready = we can use the unified connection.

Enumeration values:
NotUsed 
Ready 

Definition at line 245 of file unified_network.h.


Constructor & Destructor Documentation

NLNET::CUnifiedNetwork::CUnifiedConnection::CUnifiedConnection   [inline]
 

Definition at line 317 of file unified_network.h.

References reset.

NLNET::CUnifiedNetwork::CUnifiedConnection::CUnifiedConnection const std::string &    name,
uint16    id,
bool    isExternal
[inline]
 

Definition at line 319 of file unified_network.h.

References id, IsExternal, Ready, reset, ServiceId, ServiceName, and State.

NLNET::CUnifiedNetwork::CUnifiedConnection::CUnifiedConnection const std::string &    name,
uint16    id,
CCallbackClient   cbc
[inline]
 

Definition at line 328 of file unified_network.h.

References Connection, id, Ready, reset, ServiceId, ServiceName, and State.


Member Function Documentation

void NLNET::CUnifiedNetwork::CUnifiedConnection::reset   [inline]
 

Definition at line 337 of file unified_network.h.

References AutoCheck, AutoRetry, Connection, DefaultNetwork, ExtAddress, IsExternal, NetworkConnectionAssociations, NotUsed, SendId, ServiceId, ServiceName, and State.

Referenced by CUnifiedConnection.

void NLNET::CUnifiedNetwork::CUnifiedConnection::setupNetworkAssociation const std::vector< uint32 > &    networkAssociations,
const std::vector< std::string > &    defaultNetwork
[inline]
 

Definition at line 356 of file unified_network.h.

References DefaultNetwork, ExtAddress, NetworkConnectionAssociations, nlinfo, nlwarning, and ServiceName.


Member Data Documentation

uint NLNET::CUnifiedNetwork::CUnifiedConnection::AutoCheck
 

Used for debug purpose.

Definition at line 307 of file unified_network.h.

Referenced by reset.

bool NLNET::CUnifiedNetwork::CUnifiedConnection::AutoRetry
 

Auto-retry mode.

Definition at line 303 of file unified_network.h.

Referenced by reset.

std::vector<TConnection> NLNET::CUnifiedNetwork::CUnifiedConnection::Connection
 

Connection to the service (me be > 1).

Definition at line 311 of file unified_network.h.

Referenced by CUnifiedConnection, and reset.

uint8 NLNET::CUnifiedNetwork::CUnifiedConnection::DefaultNetwork
 

This contains the connection id that will be used for default network, it's a connection id used for Connection index.

Definition at line 315 of file unified_network.h.

Referenced by reset, and setupNetworkAssociation.

std::vector<CInetAddress> NLNET::CUnifiedNetwork::CUnifiedConnection::ExtAddress
 

The external connection address.

Definition at line 309 of file unified_network.h.

Referenced by reset, and setupNetworkAssociation.

bool NLNET::CUnifiedNetwork::CUnifiedConnection::IsExternal
 

If the connection is extern to the naming service.

Definition at line 301 of file unified_network.h.

Referenced by CUnifiedConnection, and reset.

std::vector<uint8> NLNET::CUnifiedNetwork::CUnifiedConnection::NetworkConnectionAssociations
 

This is used to associate a nid (look addNetworkAssociation) with a TConnection.

Definition at line 313 of file unified_network.h.

Referenced by reset, and setupNetworkAssociation.

bool NLNET::CUnifiedNetwork::CUnifiedConnection::SendId
 

Auto identify at connection.

Definition at line 305 of file unified_network.h.

Referenced by reset.

uint16 NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceId
 

The id of the service (is unique).

Definition at line 297 of file unified_network.h.

Referenced by CUnifiedConnection, and reset.

std::string NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceName
 

The name of the service (may not be unique).

Definition at line 295 of file unified_network.h.

Referenced by CUnifiedConnection, reset, and setupNetworkAssociation.

TState NLNET::CUnifiedNetwork::CUnifiedConnection::State
 

If the service entry is used.

Definition at line 299 of file unified_network.h.

Referenced by CUnifiedConnection, and reset.


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