NLNET::CBaseStruct Struct Reference

#include <net_manager.h>


Detailed Description

Structure used in the second part of the map If you add a client with his service name, the Name is the service name and ServiceNames is empty. If you add a client with his ip, Name is the fake service name and ServiceNames[0] is the ip. If you add a group (of client), Name is the name of the group and ServiceNames is names of all services in the group. If you add a server, Name is the service name of the server and ServiceNames is empty.

Definition at line 60 of file net_manager.h.

Public Types

enum  TBaseStructType {
  Unknown, Client, ClientWithAddr, Group,
  Server
}

Public Member Functions

 CBaseStruct (const std::string &sn)

Data Fields

bool AutoRetry
TNetManagerCallback ConnectionCallback
void * ConnectionCbArg
TNetManagerCallback DisconnectionCallback
void * DisconnectionCbArg
std::string Name
std::vector< CCallbackNetBase * > NetBase
 It could have more than one connection, in this case, the vector contains all connections.

std::vector< std::string > ServiceNames
TBaseStructType Type


Member Enumeration Documentation

enum NLNET::CBaseStruct::TBaseStructType
 

Enumeration values:
Unknown 
Client 
ClientWithAddr 
Group 
Server 

Definition at line 71 of file net_manager.h.


Constructor & Destructor Documentation

NLNET::CBaseStruct::CBaseStruct const std::string &  sn  )  [inline]
 

Definition at line 62 of file net_manager.h.

References ConnectionCallback, ConnectionCbArg, DisconnectionCallback, and DisconnectionCbArg.

00062                                           :
00063                 Name(sn), ConnectionCallback(NULL), ConnectionCbArg(NULL),
00064                 DisconnectionCallback(NULL), DisconnectionCbArg(NULL), Type(Unknown)
00065         { }


Field Documentation

bool NLNET::CBaseStruct::AutoRetry
 

Definition at line 85 of file net_manager.h.

TNetManagerCallback NLNET::CBaseStruct::ConnectionCallback
 

Definition at line 78 of file net_manager.h.

Referenced by CBaseStruct(), and NLNET::nmNewConnection().

void* NLNET::CBaseStruct::ConnectionCbArg
 

Definition at line 79 of file net_manager.h.

Referenced by CBaseStruct(), and NLNET::nmNewConnection().

TNetManagerCallback NLNET::CBaseStruct::DisconnectionCallback
 

Definition at line 81 of file net_manager.h.

Referenced by CBaseStruct(), and NLNET::nmNewDisconnection().

void* NLNET::CBaseStruct::DisconnectionCbArg
 

Definition at line 82 of file net_manager.h.

Referenced by CBaseStruct(), and NLNET::nmNewDisconnection().

std::string NLNET::CBaseStruct::Name
 

the name used by all function to retrieve a service (in the case of group or ip, this name is a virtual name used only to find it to perform action on it

Definition at line 69 of file net_manager.h.

Referenced by NLNET::nmNewConnection(), and NLNET::nmNewDisconnection().

std::vector<CCallbackNetBase*> NLNET::CBaseStruct::NetBase
 

It could have more than one connection, in this case, the vector contains all connections.

Definition at line 76 of file net_manager.h.

Referenced by NLNET::CNetManager::createConnection(), and NLNET::nmNewDisconnection().

std::vector<std::string> NLNET::CBaseStruct::ServiceNames
 

Definition at line 73 of file net_manager.h.

TBaseStructType NLNET::CBaseStruct::Type
 

Definition at line 87 of file net_manager.h.

Referenced by NLNET::nmNewDisconnection().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 13:51:35 2004 for NeL by doxygen 1.3.6