NLNET Namespace Reference

This namespace contains all network class. More...

Classes

struct  CAlarm
struct  CGraphUpdate
struct  SAdminViewRow
class  CClientReceiveTask
 Code of receiving thread for clients. More...
class  CBufClient
 Client class for layer 1. More...
class  CBufNetBase
 Layer 1. More...
class  CServerTask
 Common part of CListenTask and CServerReceiveTask. More...
class  CListenTask
 Code of listening thread. More...
class  CBufServer
 Server class for layer 1. More...
class  CServerReceiveTask
 Code of receiving threads for servers. More...
class  CBufSock
 CBufSock A socket and its sending buffer. More...
class  CNonBlockingBufSock
 CNonBlockingBufSock A socket, its send buffer plus a nonblocking receiving system. More...
class  CServerBufSock
 CServerBufSock A socket, its send buffer plus a nonblocking receiving system for a server connection. More...
class  CCallbackClient
 Client class for layer 3. More...
struct  TCallbackItem
 Callback items. See CMsgSocket::update() for an explanation on how the callbacks are called. More...
class  CCallbackNetBase
 Layer 3. More...
class  CCallbackServer
 Server class for layer 3. More...
class  CDummyTcpSock
 Dummy CTcpSock replacement for replay mode. More...
class  CInetAddress
 Internet address (IP + port). More...
class  CListenSock
 CListenSock: listening socket for servers. More...
class  CLoginClient
class  CLoginCookie
 Manage cookie during the authenticate procedure. More...
class  CLoginServer
 This class is the server part of the Login System. More...
class  CMessage
 Message memory stream for network. More...
struct  TMessageRecord
class  CMessageRecorder
 Message recorder. More...
class  IInterceptorRegistrar
class  IModuleInterceptable
 This interface contains some module methods that can be intercepted. More...
class  IModule
 This is the interface for the a module. More...
struct  TSecurityData
 Base class for module identification data Application writer should derive from this class to create there own security information. More...
struct  TUnknownSecurityData
class  IModuleProxy
 This interface is implemented by the system and it give convenient access to distant module information like module name or id, it also provide a helper to send module message without knowing the gateway. More...
class  CModuleTask
 Base class for module task (aka module coroutine). More...
class  TModuleTask
 Template module task. More...
class  IModuleFactory
 Interface for module factory. More...
class  CModuleFactory
class  CModuleBase
 Basic module implementation. More...
class  CModuleProxy
class  TBroadcastModuleMessage
 Utility class to do broadcast with a container of proxy pointer. More...
class  CEmptyModuleServiceBehav
class  CEmptyModuleCommBehav
class  CEmptySocketBehav
class  CInterceptorForwarder
 Interceptor forwarder The trick is that if you build a module interceptor class and then you want to inherit this class in a module definition, then the virtual callbacks are received by the module instead of by your interceptor (because the base module is also an interceptor and it eventualy overides the calls). More...
class  IModuleTrackerCb
 Callback class used by the CModuleTracker class below and to be implemented if you want callback when tracked module are up/down. More...
class  CModuleTracker
 A module interceptor that keep of a set of known module that match a given predicate. More...
struct  TModuleClassPred
 A canonical module predicate that test a module for a specified module class name. More...
class  EModuleNotReachable
 The destination module for a message cannot be reached by socket used. More...
class  EModuleNotPluggedHere
 A module use a socket where it is not plugged in. More...
class  TParsedCommandLine
 Structure for pre-parsed command line parameters Support in memory representation of parameter line like : 'tag1(x=1 y=2 z=3) tag2=6 tag3(a=abc b=xyz tag4)'. More...
class  IModuleGateway
 Interface for gateway. More...
class  CModuleGateway
 Intermediate class must be used as base class for implementing gateway. More...
class  IGatewayTransport
 Interface class for gateway transport. More...
class  CGatewayRoute
 Base class for gateway route. More...
class  CGatewaySecurity
class  IModuleManager
 This is the interface for the module manager. More...
class  CNelModuleLibrary
 Class for pure NeL module library. More...
class  CModuleMessageHeaderCodec
 Module message header coder/decoder Codec for module message header data. More...
struct  TBinBuffer
 An utility struct to serial binary buffer. More...
class  IModuleSocket
class  CModuleSocket
 A base class for socket. More...
class  CNamingClient
 Client side of Naming Service. More...
class  CNetDisplayer
 Net Displayer. More...
class  CNetLog
 Logger for network transfers. More...
struct  CBaseStruct
 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. More...
class  CNetManager
 Layer 4. More...
class  CPacsClient
 Client side of Pacs Service. More...
class  IService
 Base class for all network services. More...
class  IServiceUpdatable
 Interface class for object that need an update call during each service loop. More...
struct  ESocket
 Network exceptions. More...
struct  ESocketConnectionFailed
 Exception raised when connect() fails. More...
struct  ESocketConnectionClosed
 Exception raised when a connection is gracefully closed by peer. More...
struct  EAccessDenied
 Exception raised when an unauthorized access has been done. More...
struct  EServiceNotFound
 Exception raised when a the NS does not find the service looked-up. More...
class  CSock
 CSock: base socket class. More...
class  CTcpSock
 CTcpSock: Reliable socket via TCP. More...
class  CTransportClass
 You have to inherit this class and implement description() and callback() method. More...
class  CUdpSimSock
 CUdpSimSock: Unreliable datagram socket via UDP but packet lost, lag simulation. More...
class  CUdpSock
 CUdpSock: Unreliable datagram socket via UDP. More...
class  TServiceId
 This class encapsulate the serviceId format. More...
class  TServiceId8
 This class encapsulate the 8 bits service id. More...
struct  TUnifiedCallbackItem
 Callback items. See CMsgSocket::update() for an explanation on how the callbacks are called. More...
class  CUnifiedNetwork
 Layer 5. More...
class  _CUniTime
 This class provide a independant universal time system. More...
struct  CRequest
struct  CPendingUser
struct  TSecurityDataDesc
struct  TModuleDescCodec
 Sub message for module description. More...
struct  TModuleDistanceChangeMsg
 message for module distance update More...
struct  TModuleSecurityChangeMsg
 message for module security update More...
struct  TModuleRemMsg
 Message for module removing. More...
struct  TModuleOperationMsg
 Message for module operation. More...
struct  TLocalMessage
 message waiting next update for local dispatching More...
class  CStandardGateway
 The standard gateway that interconnect module across process. More...
class  CL3ServerRoute
 the specialized route for server transport More...
class  CGatewayL3ServerTransport
 Gateway transport using layer 3 server. More...
class  CL3ClientRoute
 Layer 3 client transport. More...
class  CGatewayL3ClientTransport
 Gateway transport using layer 3 client. More...
struct  TTransportDesc
class  CL5Route
 the specialized route for l5 transport More...
class  CTransportIdAllocator
 Utility class that generate 8bits unique transport id. More...
class  CGatewayL5Transport
 Gateway transport using layer 5. More...
class  CLocalGateway
 A simple gateway that interconnect module locally For testing purpose and simple case. More...
class  CModuleManager
 Implementation class for module manager. More...
class  CStdinMonitorThread
class  CStdinMonitorSingleton
class  IStdinMonitorSingleton
struct  CBufferizedOutPacket
class  CAliveCheck

Typedefs

typedef void(* TRemoteClientCallback )(uint32 rid, const std::string &cmd, const std::string &entityNames)
typedef std::vector< std::string > TAdminViewVarNames
typedef std::vector< std::string > TAdminViewValues
typedef std::vector
< SAdminViewRow
TAdminViewResult
typedef CBufSockTSockId
 Socket identifier.
typedef void(* TNetCallback )(TSockId from, void *arg)
 Callback function for message processing.
typedef std::pair
< TNetCallback, TSockId
TStoredNetCallback
 Storing a TNetCallback call for future call.
typedef NLMISC::CSynchronized
< NLMISC::CBufFIFO
CSynchronizedFIFO
 Synchronized FIFO buffer.
typedef
CSynchronizedFIFO::CAccessor 
CFifoAccessor
 Accessor of mutexed FIFO buffer.
typedef uint32 TBlockSize
 Size of a block.
typedef std::vector
< NLMISC::IThread * > 
CThreadPool
typedef std::set< TSockIdCConnections
typedef void(* TMsgCallback )(CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
 Callback function type for message processing.
typedef void(* TNewClientCallback )(TSockId from, const CLoginCookie &cookie)
 Callback function type called when a new client is identified (with the login password procedure).
typedef void(* TNewCookieCallback )(const CLoginCookie &cookie)
 Callback function type called when a new cookie is acceptable (aka as 'a player can connect with this cookie').
typedef void(* TDisconnectClientCallback )(uint32 userId, const std::string &reqServiceName)
 Callback function type called when a client need to be disconnected (double login...).
typedef uint32 TModuleId
 General type definition Module identifier.
typedef NLMISC::CSmartPtr
< IModule
TModulePtr
typedef NLMISC::CSmartPtr
< IModuleProxy
TModuleProxyPtr
typedef
NLMISC::CFactoryIndirect
< IModuleFactory, std::string > 
TLocalModuleFactoryRegistry
typedef void(* TBroadcastCallback )(const std::string &name, TServiceId sid, const std::vector< CInetAddress > &addr)
typedef void(* TNetManagerCallback )(const std::string &serviceName, TSockId from, void *arg)
 Callback function type for message processing.
typedef bool(* TRequestClosureClearanceCallback )()
 Callback where you can return true for direct clearance, or false for later clearance.
typedef int SOCKET
typedef void(* TUnifiedNetCallback )(const std::string &serviceName, TServiceId sid, void *arg)
 Callback function type for service up/down processing.
typedef void(* TUnifiedMsgCallback )(CMessage &msgin, const std::string &serviceName, TServiceId sid)
 Callback function type for message processing.
typedef uint8 TL5TransportId

Enumerations

enum  TPipeWay { PipeRead, PipeWrite }
 

Access to the wake-up pipe (Unix only).

More...
enum  TNetworkEvent {
  Sending, Receiving, Connecting, ConnFailing,
  Accepting, Disconnecting, Error
}
 

Type of network events (if changed, don't forget to change EventToString() and StringToEvent().

More...

Functions

void initAdmin (bool dontUseAES)
void updateAdmin ()
void setInformations (const std::vector< std::string > &alarms, const std::vector< std::string > &graphupdate)
void serviceGetView (uint32 rid, const std::string &rawvarpath, TAdminViewResult &answer, bool async=false)
void setRemoteClientCallback (TRemoteClientCallback cb)
void addRequestAnswer (uint32 rid, const TAdminViewVarNames &varNames, const TAdminViewValues &values)
bool sendEmail (const std::string &smtpServer, const std::string &from, const std::string &to, const std::string &subject, const std::string &body, const std::string &attachedFile="", bool onlyCheck=false)
 Send an email.
void setDefaultEmailParams (const std::string &smtpServer, const std::string &from, const std::string &to)
 If you call this function, the default from (when from is "") used in the sendEmail will be the one you set by this function.
uint32 stringToInternalIPAddress (const std::string &addr)
 Take a internet dot string and convert it in an uint32 internal format for example "128.64.32.16" -> 0xF0804020.
std::string internalIPAddressToString (uint32 addr)
 Take an internal address and convert it to a internet dot string.
std::string vectorCInetAddressToString (const std::vector< CInetAddress > &addrs)
bool operator== (const CLoginCookie &c1, const CLoginCookie &c2)
bool operator!= (const CLoginCookie &c1, const CLoginCookie &c2)
string EventToString (TNetworkEvent e)
 TNetworkEvent -> string.
TNetworkEvent StringToEvent (string &s)
 string -> TNetworkEvent
static void cbPacsAnswer (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void getNameOfMessageOrTransportClass (NLNET::CMessage &msgin, std::string &msgName)
 Get the name of message (for displaying), or extract the class name if it is a transport class.
static void cbInfo (CMessage &msgin, const std::string &, TServiceId)
static void cbServGetView (CMessage &msgin, const std::string &, TServiceId sid)
static void cbExecCommand (CMessage &msgin, const std::string &, TServiceId sid)
static void cbAdminPing (CMessage &, const std::string &, TServiceId sid)
static void cbStopService (CMessage &, const std::string &serviceName, TServiceId sid)
void cbAESConnection (const string &, TServiceId, void *)
static void cbAESDisconnection (const std::string &serviceName, TServiceId sid, void *)
static void addRequestWaitingNb (uint32 rid)
static void cleanRequest ()
bool isRemoteCommand (string &str)
void sendAdminEmail (const char *format,...)
 NLMISC_CATEGORISED_COMMAND (nel, displayInformations,"displays all admin informations","")
 NLMISC_CATEGORISED_COMMAND (nel, getView,"send a view and receive an array as result","<varpath>")
uint64 updateStatCounter (uint64 &counter, uint64 newvalue)
 NLMISC_CATEGORISED_VARIABLE (nel, uint32, NbClientReceiveTask,"Number of client receive thread")
 NLMISC_CATEGORISED_VARIABLE (nel, uint32, NbNetworkTask,"Number of server and client thread")
 NLMISC_CATEGORISED_VARIABLE (nel, uint32, NbServerListenTask,"Number of server listen thread")
 NLMISC_CATEGORISED_VARIABLE (nel, uint32, NbServerReceiveTask,"Number of server receive thread")
NLMISC::CMutex nettrace_mutex ("nettrace_mutex")
string stringFromVectorPart (const vector< uint8 > &v, uint32 pos, uint32 len)
void cbnbNewDisconnection (TSockId from, void *data)
void cbsNewConnection (TSockId from, void *data)
static void uuencode (const char *s, const char *store, const int length)
bool sendEMailCommand (CTcpSock &sock, const std::string &command, uint32 code=250)
bool operator== (const CInetAddress &a1, const CInetAddress &a2)
bool operator< (const CInetAddress &a1, const CInetAddress &a2)
static void cbShardValidate (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
static void cbVerifyLoginPassword (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
static void cbShardChooseShard (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void notifyWSRemovedPendingCookie (CLoginCookie &cookie)
void cbWSChooseShard (CMessage &msgin, const std::string &, TServiceId)
void cbWSDisconnectClient (CMessage &msgin, const std::string &serviceName, TServiceId)
void cbShardValidation (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void ClientConnection (TSockId from, void *)
void cfcbListenAddress (CConfigFile::CVar &var)
void cfcbDefaultUserPriv (CConfigFile::CVar &var)
void cfcbAcceptInvalidCookie (CConfigFile::CVar &var)
void cfcbTimeBeforeEraseCookie (CConfigFile::CVar &var)
 NLMISC_CATEGORISED_COMMAND (nel, lsUsers,"displays the list of all connected users","")
 NLMISC_CATEGORISED_COMMAND (nel, lsPending,"displays the list of all pending users","")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, LSListenAddress,"the listen address sended to the client to connect on this front_end")
 NLMISC_CATEGORISED_VARIABLE (nel, string, DefaultUserPriv,"Default User priv for people who don't use the login system")
 NLMISC_CLASS_COMMAND_IMPL (CModuleBase, plug)
 NLMISC_CLASS_COMMAND_IMPL (CModuleBase, unplug)
 NLMISC_CLASS_COMMAND_IMPL (CModuleBase, sendPing)
 NLMISC_CLASS_COMMAND_IMPL (CModuleBase, dump)
 NLNET_REGISTER_MODULE_FACTORY (CStandardGateway,"StandardGateway")
void forceGatewayLink ()
 NLMISC_REGISTER_OBJECT (IGatewayTransport, CGatewayL3ServerTransport, std::string, string(LAYER3_SERVER_CLASS_NAME))
 NLMISC_REGISTER_OBJECT (IGatewayTransport, CGatewayL3ClientTransport, std::string, string(LAYER3_CLIENT_CLASS_NAME))
void forceGatewayTransportLink ()
 NLMISC_SAFE_SINGLETON_IMPL (CTransportIdAllocator)
 NLMISC_REGISTER_OBJECT (IGatewayTransport, CGatewayL5Transport, std::string, string(LAYER5_CLASS_NAME))
void forceGatewayL5TransportLink ()
 NLNET_REGISTER_MODULE_FACTORY (CLocalGateway,"LocalGateway")
void forceLocalGatewayLink ()
 NLMISC_SAFE_SINGLETON_IMPL (CModuleManager)
void forceLink ()
void cbRegisterBroadcast (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
static void cbRegister (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
static void cbQueryPort (CMessage &msgin, TSockId, CCallbackNetBase &)
void cbUnregisterBroadcast (CMessage &msgin, TSockId, CCallbackNetBase &)
 NLMISC_CATEGORISED_COMMAND (nel, services,"displays registered services","")
NLMISC::CVariable< boolVerboseLNETL0 ("nel","VerboseLNETL0","Enable verbose logging in Network Layer 0 operations", false, 0, true)
NLMISC::CVariable< boolVerboseLNETL1 ("nel","VerboseLNETL1","Enable verbose logging in Network Layer 1 operations", false, 0, true)
NLMISC::CVariable< boolVerboseLNETL2 ("nel","VerboseLNETL2","Enable verbose logging in Network Layer 2 operations", false, 0, true)
NLMISC::CVariable< boolVerboseLNETL3 ("nel","VerboseLNETL3","Enable verbose logging in Network Layer 3 operations", false, 0, true)
NLMISC::CVariable< boolVerboseLNETL4 ("nel","VerboseLNETL4","Enable verbose logging in Network Layer 4 operations", false, 0, true)
NLMISC::CVariable< boolVerboseLNETL5 ("nel","VerboseLNETL5","Enable verbose logging in Network Layer 5 operations", true, 0, true)
NLMISC::CVariable< boolVerboseLNETL6 ("nel","VerboseLNETL6","Enable verbose logging in Network Layer 6 operations", true, 0, true)
static void nmNewConnection (TSockId from, void *arg)
static void nmNewDisconnection (TSockId from, void *arg)
void RegistrationBroadcast (const std::string &name, TServiceId sid, const vector< CInetAddress > &addr)
static void UnregistrationBroadcast (const std::string &name, TServiceId sid, const vector< CInetAddress > &addr)
static void UpdateAssertionThreadTimeoutCB (IVariable &var)
static void sigHandler (int Sig)
static void initSignal ()
void cbDirectoryChanged (IVariable &var)
void cbReceiveShardId (CMessage &msgin, const string &serviceName, TServiceId serviceId)
void cbLogFilter (CConfigFile::CVar &var)
void cbExecuteCommands (CConfigFile::CVar &var)
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, LaunchingDate,"date of the launching of the program")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, Uptime,"time from the launching of the program")
 NLMISC_CATEGORISED_VARIABLE (nel, string, CompilationDate,"date of the compilation")
 NLMISC_CATEGORISED_VARIABLE (nel, string, CompilationMode,"mode of the compilation")
 NLMISC_CATEGORISED_VARIABLE (nel, uint32, NbUserUpdate,"number of time the user IService::update() called")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, Scroller,"current size in bytes of the sent queue size")
 NLMISC_CATEGORISED_COMMAND (nel, quit,"exit the service","")
 NLMISC_CATEGORISED_COMMAND (nel, brutalQuit,"exit the service brutally","")
 NLMISC_CATEGORISED_COMMAND (nel, serviceInfo,"display information about this service","")
 NLMISC_CATEGORISED_COMMAND (nel, resetMeasures,"reset hierarchical timer","")
 NLMISC_CATEGORISED_COMMAND (nel, getWinDisplayerInfo,"display the info about the pos and size of the window displayer","")
 NLMISC_CATEGORISED_COMMAND (nel, displayConfigFile,"display the variables of the default configfile","")
 NLMISC_CATEGORISED_COMMAND (nel, getUnknownConfigFileVariables,"display the variables from config file that are called but not present","")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, State,"Set this value to 0 to shutdown the service and 1 to start the service")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, uint32, ShardId,"Get value of shardId set for this particular service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, CPULoad,"Get instant CPU load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, ProcessLoad,"Get instant CPU load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, CPUUserLoad,"Get instant CPU user load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, CPUSytemLoad,"Get instant CPU system load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, CPUNiceLoad,"Get instant CPU nice processes load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, CPUIOWaitLoad,"Get instant CPU IO wait load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, ProcessUserLoad,"Get instant CPU user load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, ProcessSystemLoad,"Get instant CPU system load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanCPULoad,"Get instant CPU load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanProcessLoad,"Get instant CPU load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanCPUUserLoad,"Get instant CPU user load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanCPUSytemLoad,"Get instant CPU system load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanCPUNiceLoad,"Get instant CPU nice processes load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanCPUIOWaitLoad,"Get instant CPU IO wait load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanProcessUserLoad,"Get instant CPU user load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, MeanProcessSystemLoad,"Get instant CPU system load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakCPULoad,"Get instant CPU load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakProcessLoad,"Get instant CPU load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakCPUUserLoad,"Get instant CPU user load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakCPUSytemLoad,"Get instant CPU system load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakCPUNiceLoad,"Get instant CPU nice processes load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakCPUIOWaitLoad,"Get instant CPU IO wait load of the server")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakProcessUserLoad,"Get instant CPU user load of the process/service")
 NLMISC_CATEGORISED_DYNVARIABLE (cpu, float, PeakProcessSystemLoad,"Get instant CPU system load of the process/service")
NLMISC::CVariable< boolVerboseNETTC ("nel","VerboseNETTC","Enable verbose logging in CTransportClass operations", true, 0, true)
string typeToString (CTransportClass::TProp type)
void cbTCReceiveMessage (CMessage &msgin, const string &name, TServiceId sid)
void cbTCReceiveOtherSideClass (CMessage &msgin, const string &, TServiceId sid)
void cbTCUpService (const std::string &serviceName, TServiceId sid, void *)
void cbSimVar (CConfigFile::CVar &var)
void uNetRegistrationBroadcast (const string &name, TServiceId sid, const vector< CInetAddress > &addr)
void uNetUnregistrationBroadcast (const string &name, TServiceId sid, const vector< CInetAddress > &addr)
void uncbConnection (TSockId from, void *)
void uncbDisconnection (TSockId from, void *)
void uncbServiceIdentification (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void uncbMsgProcessing (CMessage &msgin, TSockId from, CCallbackNetBase &)
 NLMISC_SAFE_SINGLETON_IMPL (CUnifiedNetwork)
bool createMessage (CMessage &msgout, const vector< string > &args, CLog &log)
 NLMISC_CATEGORISED_VARIABLE (nel, uint32, TotalCallbackCalled,"Total callback called number on layer 5")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, uint64, SendQueueSize,"current size in bytes of all send queues")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, uint64, ReceiveQueueSize,"current size in bytes of all receive queues")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, uint64, ReceivedBytes,"total of bytes received by this service")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, uint64, SentBytes,"total of bytes sent by this service")
 nlunreferenced (rawCommandString)
 nlunreferenced (quiet)
 nlunreferenced (human)
 if (args.size()< 2) return false
 if (!CUnifiedNetwork::isUsed())
 fromString (args[0], sId)
 if (serviceId.get() > 255)
 if ((args.size()-2)%2!=0)
 if (!createMessage(msg, args, log)) return false
msg invert ()
 if (cb==NULL)
static void cbServerAskUniversalTime (CMessage &, TSockId from, CCallbackNetBase &netbase)

Variables

std::vector< CGraphUpdateGraphUpdates
std::vector< CAlarmAlarms
static const TSockId InvalidSockId = (TSockId) NULL
uint32 NbNetworkTask = 0
const char * LockedSubMessageError = "a sub message is forbidden"
const TModulePtr NullModule
const TModuleProxyPtr NullModuleProxy
const TModuleId INVALID_MODULE_ID = 0
 A module ID of 0 mean 'not valid module ID'.
NLMISC::CVariable< boolVerboseLNETL0
NLMISC::CVariable< boolVerboseLNETL1
NLMISC::CVariable< boolVerboseLNETL2
NLMISC::CVariable< boolVerboseLNETL3
NLMISC::CVariable< boolVerboseLNETL4
NLMISC::CVariable< boolVerboseLNETL5
NLMISC::CVariable< boolVerboseLNETL6
CNetLog NetLog
TCallbackItem PacsCallbackArray []
TUnifiedCallbackItem EmptyCallbackArray [1] = { { "", NULL } }
NLMISC::CVariable< boolVerboseNETTC
TRemoteClientCallback RemoteClientCallback = 0
const uint32 AlarmCheckDelay = 5
vector< CRequestRequests
uint32 RequestTimeout = 4
static TUnifiedCallbackItem CallbackArray []
uint32 NbClientReceiveTask = 0
uint32 NbServerListenTask = 0
uint32 NbServerReceiveTask = 0
static string DefaultSMTPServer
static string DefaultFrom
static string DefaultTo
static char tbl [65]
static bool ShardValidate
static string ShardValidateReason
static TCallbackItem FESCallbackArray []
static bool VerifyLoginPassword
static string VerifyLoginPasswordReason
static bool ShardChooseShard
static string ShardChooseShardReason
static string ShardChooseShardAddr
static string ShardChooseShardCookie
static TCallbackItem LSCallbackArray []
static list< CPendingUserPendingUsers
static CCallbackServerServer = NULL
static string ListenAddr
static bool AcceptInvalidCookie = false
static string DefaultUserPriv = ""
static TDisconnectClientCallback DisconnectClientCallback = NULL
static bool ModeTcp = 0
static uint TimeBeforeEraseCookie = 15*60
map< uint32, TSockIdUserIdSockAssociations
 contains the correspondance between userid and the sockid
TNewClientCallback NewClientCallback = NULL
TNewCookieCallback NewCookieCallback = NULL
static TUnifiedCallbackItem WSCallbackArray []
static const TCallbackItem ClientCallbackArray []
const uint32 KEEP_ALIVE_DELAY = 120
static TBroadcastCallback _RegistrationBroadcastCallback = NULL
static TBroadcastCallback _UnregistrationBroadcastCallback = NULL
static bool Registered
static bool RegisteredSuccess
static TServiceIdRegisteredSID = NULL
static string Reason
static bool QueryPort
static uint16 QueryPortPort
static TCallbackItem NamingClientCallbackArray []
const sint16 LOG_CBINDEX = 0
static const sint Signal []
static const char * SignalName []
static const char * NegFiltersNames []
static sint ExitSignalAsked = 0
CVariable< sint32UserSpeedLoop ("nel","UserSpeedLoop","duration of the last user loop (in ms)", 10, false)
CVariable< sint32NetSpeedLoop ("nel","NetSpeedLoop","duration of the last network loop (in ms)", 10, false)
CVariable< uint32L5CallbackTime ("nel","L5CallbackTime","Time passed in the L5 callback function in the last loop (in ms)", 0, 100)
 The time passed in callback during the loop.
CVariable< uint32L5CallbackCount ("nel","L5CallbackCount","The number of layer 5 callback received in the last loop", 0, 100)
 The number of L5 callback treated.
uint32 TotalCallbackCalled = 0
uint32 TimeInCallback = 0
uint32 LastTotalCallbackCalled = 0
uint32 LastTimeInCallback = 0
static uint SignalisedThread
static CFileDisplayer fd
static CNetDisplayer commandDisplayer (false)
static string CompilationDate
static uint32 LaunchingDate
static uint32 NbUserUpdate = 0
string CompilationMode = nlMode
CVariable< boolBench ("nel","Bench","1 if benching 0 if not", 0, true)
static CTimeoutAssertionThread MyTAT
static CVariable< uint32UpdateAssertionThreadTimeout ("nel","UpdateAssertionThreadTimeout","in millisecond, timeout before thread assertion", 0, 0, true, UpdateAssertionThreadTimeoutCB)
CVariable< boolFlushSendingQueuesOnExit ("nel","FlushSendingQueuesOnExit","Flag to enable/disable the flushing of the sending queues when the service is shut down", false, 0, true)
CVariable< string > NamesOfOnlyServiceToFlushSending ("nel","NamesOfOnlyServiceToFlushSending","If FlushSendingQueuesOnExit is on, only the sending queues to these specified services will be flushed (ex: \"WS:LS\"; all will be flushed if empty string)","", 0, true)
TUnifiedCallbackItem builtinServiceCallbacks []
uint8 buffer [10000]
static uint ThreadCreator = 0
static const uint64 AppIdDeadConnection = 0xDEAD
CVariable< uint32UseYieldMethod ("nel","UseYieldMethod","0=select 1=usleep 2=nanosleep 3=sched_yield 4=none", 0, 0, true)
 Yield method (Unix only).
CVariable< boolFlushSendsBeforeSleep ("nel","FlushSendsBeforeSleep","If true, send buffers will be flushed before sleep, not in next update", true, 0, true)
 Reduce sending lag.
CVariable< uintL5TotalBytesInLowLevelSendQueues ("nel","L5TotalBytesInLowLevelSendQueues","Number of bytes pending in send queues (postponed by non-blocking send()) for network congestion monitoring. N/A if FlushSendsBeforeSleep disabled)", 0, 0, true)
 Network congestion monitoring.
CVariablePtr< uint32DefaultMaxExpectedBlockSize ("nel","DefaultMaxExpectedBlockSize","If receiving more than this value in bytes, the connection will be dropped",&CBufNetBase::DefaultMaxExpectedBlockSize, true)
 Receiving size limit.
CVariablePtr< uint32DefaultMaxSentBlockSize ("nel","DefaultMaxSentBlockSize","If sending more than this value in bytes, the program may be stopped",&CBufNetBase::DefaultMaxSentBlockSize, true)
 Sending size limit.
TCallbackItem unServerCbArray []
IThreadAliveThread = NULL
uint16 sId
TServiceId serviceId (sId)
string serviceName = args[0].c_str()
string messageName = args[1].c_str()
CMessage msg (messageName)
TUnifiedMsgCallback cb = CUnifiedNetwork::getInstance()->findCallback (messageName)
static bool GetUniversalTime
static uint32 GetUniversalTimeSecondsSince1970
static TTime GetUniversalTimeUniTime
TCallbackItem ServerTimeServiceCallbackArray []
static bool GetClientUniversalTime
static TTime GetClientUniversalTimeUniTime

Detailed Description

This namespace contains all network class.


Typedef Documentation

typedef std::set<TSockId> NLNET::CConnections

Definition at line 403 of file buf_server.h.

typedef CSynchronizedFIFO::CAccessor NLNET::CFifoAccessor

Accessor of mutexed FIFO buffer.

Definition at line 54 of file buf_net_base.h.

typedef NLMISC::CSynchronized<NLMISC::CBufFIFO> NLNET::CSynchronizedFIFO

Synchronized FIFO buffer.

Definition at line 51 of file buf_net_base.h.

typedef std::vector<NLMISC::IThread*> NLNET::CThreadPool

Definition at line 115 of file buf_server.h.

typedef int NLNET::SOCKET

Definition at line 85 of file sock.h.

typedef std::vector< SAdminViewRow > NLNET::TAdminViewResult

Definition at line 89 of file admin.h.

typedef std::vector<std::string> NLNET::TAdminViewValues

Definition at line 80 of file admin.h.

typedef std::vector<std::string> NLNET::TAdminViewVarNames

Definition at line 79 of file admin.h.

Size of a block.

Definition at line 57 of file buf_net_base.h.

typedef void(* NLNET::TBroadcastCallback)(const std::string &name, TServiceId sid, const std::vector< CInetAddress > &addr)

Definition at line 43 of file naming_client.h.

typedef void(* NLNET::TDisconnectClientCallback)(uint32 userId, const std::string &reqServiceName)

Callback function type called when a client need to be disconnected (double login...).

Definition at line 51 of file login_server.h.

Definition at line 42 of file module_l5_transport.cpp.

Definition at line 190 of file module_manager.h.

General type definition Module identifier.

Definition at line 35 of file module_common.h.

Definition at line 44 of file module_common.h.

Definition at line 41 of file module_common.h.

typedef void(* NLNET::TMsgCallback)(CMessage &msgin, TSockId from, CCallbackNetBase &netbase)

Callback function type for message processing.

msgin contains parameters of the message from is the SockId of the connection, for a client, from is always the same value

Definition at line 53 of file callback_net_base.h.

typedef void(* NLNET::TNetCallback)(TSockId from, void *arg)

Callback function for message processing.

Definition at line 45 of file buf_net_base.h.

typedef void(* NLNET::TNetManagerCallback)(const std::string &serviceName, TSockId from, void *arg)

Callback function type for message processing.

Definition at line 55 of file net_manager.h.

typedef void(* NLNET::TNewClientCallback)(TSockId from, const CLoginCookie &cookie)

Callback function type called when a new client is identified (with the login password procedure).

Definition at line 45 of file login_server.h.

typedef void(* NLNET::TNewCookieCallback)(const CLoginCookie &cookie)

Callback function type called when a new cookie is acceptable (aka as 'a player can connect with this cookie').

Definition at line 48 of file login_server.h.

typedef void(* NLNET::TRemoteClientCallback)(uint32 rid, const std::string &cmd, const std::string &entityNames)

Definition at line 64 of file admin.h.

Callback where you can return true for direct clearance, or false for later clearance.

Definition at line 157 of file service.h.

Socket identifier.

Definition at line 37 of file buf_net_base.h.

Storing a TNetCallback call for future call.

Definition at line 48 of file buf_net_base.h.

typedef void(* NLNET::TUnifiedMsgCallback)(CMessage &msgin, const std::string &serviceName, TServiceId sid)

Callback function type for message processing.

Parameters:
msgin message received
serviceName name of the service that sent the message
sid id of the service that sent the message

Definition at line 196 of file unified_network.h.

typedef void(* NLNET::TUnifiedNetCallback)(const std::string &serviceName, TServiceId sid, void *arg)

Callback function type for service up/down processing.

Parameters:
serviceName name of the service that is un/registered to the naming service
arg a pointer initialized by the user

Definition at line 189 of file unified_network.h.


Enumeration Type Documentation

Type of network events (if changed, don't forget to change EventToString() and StringToEvent().

Enumerator:
Sending 
Receiving 
Connecting 
ConnFailing 
Accepting 
Disconnecting 
Error 

Definition at line 47 of file message_recorder.h.

Access to the wake-up pipe (Unix only).

Enumerator:
PipeRead 
PipeWrite 

Definition at line 63 of file buf_net_base.h.


Function Documentation

void NLNET::addRequestAnswer ( uint32  rid,
const TAdminViewVarNames varNames,
const TAdminViewValues values 
)

Definition at line 268 of file admin.cpp.

References nlassert, nldebug, nlwarning, and Requests.

Referenced by serviceGetView().

static void NLNET::addRequestWaitingNb ( uint32  rid  )  [static]

Definition at line 236 of file admin.cpp.

References nldebug, nlwarning, and Requests.

Referenced by serviceGetView().

static void NLNET::cbAdminPing ( CMessage ,
const std::string &  ,
TServiceId  sid 
) [static]

Definition at line 166 of file admin.cpp.

void NLNET::cbAESConnection ( const string &  serviceName,
TServiceId  ,
void *   
)

Definition at line 180 of file admin.cpp.

References NLNET::IService::_LongName, NLNET::IService::getInstance(), and nlinfo.

Referenced by initAdmin().

static void NLNET::cbAESDisconnection ( const std::string &  serviceName,
TServiceId  sid,
void *   
) [static]

Definition at line 206 of file admin.cpp.

References NLNET::TServiceId::get(), and nlinfo.

Referenced by initAdmin().

void NLNET::cbDirectoryChanged ( NLMISC::IVariable var  ) 
static void NLNET::cbExecCommand ( CMessage msgin,
const std::string &  ,
TServiceId  sid 
) [static]
void NLNET::cbExecuteCommands ( CConfigFile::CVar var  ) 
static void NLNET::cbInfo ( CMessage msgin,
const std::string &  ,
TServiceId   
) [static]

Definition at line 99 of file admin.cpp.

References nlinfo, NLMISC::CMemStream::serialCont(), and setInformations().

void NLNET::cbLogFilter ( CConfigFile::CVar var  ) 
void NLNET::cbnbNewDisconnection ( TSockId  from,
void *  data 
)
static void NLNET::cbPacsAnswer ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
) [static]
static void NLNET::cbQueryPort ( CMessage &  msgin,
TSockId  ,
CCallbackNetBase &   
) [static]

Definition at line 109 of file naming_client.cpp.

References QueryPort, QueryPortPort, and NLMISC::CMemStream::serial().

void NLNET::cbReceiveShardId ( NLNET::CMessage msgin,
const string &  serviceName,
TServiceId  serviceId 
)
static void NLNET::cbRegister ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
) [static]
void NLNET::cbRegisterBroadcast ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
)
static void NLNET::cbServerAskUniversalTime ( CMessage &  ,
TSockId  from,
CCallbackNetBase &  netbase 
) [static]
static void NLNET::cbServGetView ( CMessage msgin,
const std::string &  ,
TServiceId  sid 
) [static]

Definition at line 111 of file admin.cpp.

References nlassert, Requests, NLMISC::CMemStream::serial(), and serviceGetView().

static void NLNET::cbShardChooseShard ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
) [static]
static void NLNET::cbShardValidate ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
) [static]

Definition at line 54 of file login_client.cpp.

References NLMISC::CMemStream::serial(), ShardValidate, and ShardValidateReason.

void NLNET::cbShardValidation ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
)
void NLNET::cbSimVar ( CConfigFile::CVar var  ) 
void NLNET::cbsNewConnection ( TSockId  from,
void *  data 
)
static void NLNET::cbStopService ( CMessage ,
const std::string &  serviceName,
TServiceId  sid 
) [static]
void NLNET::cbTCReceiveMessage ( NLNET::CMessage msgin,
const string &  name,
NLNET::TServiceId  sid 
)
void NLNET::cbTCReceiveOtherSideClass ( NLNET::CMessage msgin,
const string &  name,
NLNET::TServiceId  sid 
)
void NLNET::cbTCUpService ( const std::string &  serviceName,
NLNET::TServiceId  sid,
void *   
)
void NLNET::cbUnregisterBroadcast ( CMessage &  msgin,
TSockId  ,
CCallbackNetBase &   
)
static void NLNET::cbVerifyLoginPassword ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
) [static]
void NLNET::cbWSChooseShard ( CMessage &  msgin,
const std::string &  ,
TServiceId   
)
void NLNET::cbWSDisconnectClient ( CMessage &  msgin,
const std::string &  serviceName,
TServiceId   
)
void NLNET::cfcbAcceptInvalidCookie ( CConfigFile::CVar var  ) 
void NLNET::cfcbDefaultUserPriv ( CConfigFile::CVar var  ) 
void NLNET::cfcbListenAddress ( CConfigFile::CVar var  ) 
void NLNET::cfcbTimeBeforeEraseCookie ( CConfigFile::CVar var  ) 
static void NLNET::cleanRequest (  )  [static]
void NLNET::ClientConnection ( TSockId  from,
void *   
)
bool NLNET::createMessage ( CMessage &  msgout,
const vector< string > &  args,
CLog log 
)
string NLNET::EventToString ( TNetworkEvent  e  ) 

TNetworkEvent -> string.

Definition at line 37 of file message_recorder.cpp.

References Accepting, Connecting, ConnFailing, Disconnecting, nlstop, Receiving, and Sending.

Referenced by NLNET::CMessageRecorder::checkNextOne(), and NLNET::TMessageRecord::serial().

void NLNET::forceGatewayL5TransportLink (  ) 

Referenced by forceLink().

void NLNET::forceGatewayLink (  ) 

Referenced by forceLink().

void NLNET::forceGatewayTransportLink (  ) 

Referenced by forceLink().

void NLNET::forceLink (  ) 
void NLNET::forceLocalGatewayLink (  ) 

Referenced by forceLink().

NLNET::fromString ( args  [0],
sId   
)
void NLNET::getNameOfMessageOrTransportClass ( NLNET::CMessage msgin,
std::string &  msgName 
)

Get the name of message (for displaying), or extract the class name if it is a transport class.

Preconditions:

  • msgin is an input message that contains a valid message

Postconditions:

  • msgin.getPos() was modified
  • msgName contains "msg %s" or "transport class %s" where s is the name of message, or the name transport class is the message is a CT_MSG

Definition at line 420 of file transport_class.cpp.

References NLMISC::IStream::begin, NLNET::CMessage::getHeaderSize(), NLNET::CMessage::getName(), NLMISC::CMemStream::seek(), and NLMISC::CMemStream::serial().

NLNET::if ( cb  = = NULL  ) 

Definition at line 2335 of file unified_network.cpp.

NLNET::if ( createMessagemsg, args, log  ) 
NLNET::if ( (args.size()-2)%2!  = 0  ) 

Definition at line 2320 of file unified_network.cpp.

NLNET::if ( serviceId.  get(),
255   
)

Definition at line 2314 of file unified_network.cpp.

References NLNET::TServiceId::get(), and serviceId.

NLNET::if ( !CUnifiedNetwork::  isUsed()  ) 

Definition at line 2301 of file unified_network.cpp.

NLNET::if (  ) 
void NLNET::initAdmin ( bool  dontUseAES  ) 

Definition at line 623 of file admin.cpp.

References CallbackArray, cbAESConnection(), and cbAESDisconnection().

Referenced by NLNET::IService::main().

static void NLNET::initSignal (  )  [static]
std::string NLNET::internalIPAddressToString ( uint32  addr  ) 

Take an internal address and convert it to a internet dot string.

Definition at line 532 of file inet_address.cpp.

References NLMISC::toString().

Referenced by NLNET::CUnifiedNetwork::addNetworkAssociation(), and NLNET::CUnifiedNetwork::displayInternalTables().

msg NLNET::invert (  ) 
bool NLNET::isRemoteCommand ( string &  str  ) 

Definition at line 373 of file admin.cpp.

Referenced by serviceGetView().

NLMISC::CMutex NLNET::nettrace_mutex ( "nettrace_mutex"   ) 
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
getUnknownConfigFileVariables  ,
"display the variables from config file that are called but not present"  ,
""   
)
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayConfigFile  ,
"display the variables of the default configfile"  ,
""   
)
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
getWinDisplayerInfo  ,
"display the info about the pos and size of the window displayer"  ,
""   
)
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
resetMeasures  ,
"reset hierarchical timer"  ,
""   
)
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
serviceInfo  ,
"display information about this service"  ,
""   
)
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
brutalQuit  ,
"exit the service brutally"  ,
""   
)

Definition at line 1783 of file service.cpp.

References nlunreferenced().

NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
quit  ,
"exit the service"  ,
""   
)

Definition at line 1769 of file service.cpp.

References ExitSignalAsked, and nlunreferenced().

NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
services  ,
"displays registered services"  ,
""   
)
NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
lsPending  ,
"displays the list of all pending users"  ,
""   
)

Definition at line 545 of file login_server.cpp.

References nlunreferenced(), and PendingUsers.

NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
lsUsers  ,
"displays the list of all connected users"  ,
""   
)

Definition at line 520 of file login_server.cpp.

References ModeTcp, nlunreferenced(), and UserIdSockAssociations.

NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
getView  ,
"send a view and receive an array as result"  ,
"<varpath>"   
)

Definition at line 892 of file admin.cpp.

References nlassert, nlunreferenced(), and serviceGetView().

NLNET::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayInformations  ,
"displays all admin informations"  ,
""   
)

Definition at line 870 of file admin.cpp.

References Alarms, GraphUpdates, and nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
uint64  ,
SentBytes  ,
"total of bytes sent by this service"   
)

Definition at line 2266 of file unified_network.cpp.

References NLNET::CUnifiedNetwork::isUsed(), and nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
uint64  ,
ReceivedBytes  ,
"total of bytes received by this service"   
)

Definition at line 2253 of file unified_network.cpp.

References NLNET::CUnifiedNetwork::isUsed(), and nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
uint64  ,
ReceiveQueueSize  ,
"current size in bytes of all receive queues"   
)

Definition at line 2239 of file unified_network.cpp.

References NLNET::CUnifiedNetwork::isUsed(), and nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
uint64  ,
SendQueueSize  ,
"current size in bytes of all send queues"   
)

Definition at line 2226 of file unified_network.cpp.

References NLNET::CUnifiedNetwork::isUsed(), and nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakProcessSystemLoad  ,
"Get instant CPU system load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakProcessUserLoad  ,
"Get instant CPU user load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakCPUIOWaitLoad  ,
"Get instant CPU IO wait load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakCPUNiceLoad  ,
"Get instant CPU nice processes load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakCPUSytemLoad  ,
"Get instant CPU system load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakCPUUserLoad  ,
"Get instant CPU user load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakProcessLoad  ,
"Get instant CPU load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
PeakCPULoad  ,
"Get instant CPU load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanProcessSystemLoad  ,
"Get instant CPU system load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanProcessUserLoad  ,
"Get instant CPU user load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanCPUIOWaitLoad  ,
"Get instant CPU IO wait load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanCPUNiceLoad  ,
"Get instant CPU nice processes load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanCPUSytemLoad  ,
"Get instant CPU system load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanCPUUserLoad  ,
"Get instant CPU user load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanProcessLoad  ,
"Get instant CPU load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
MeanCPULoad  ,
"Get instant CPU load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
ProcessSystemLoad  ,
"Get instant CPU system load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
ProcessUserLoad  ,
"Get instant CPU user load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
CPUIOWaitLoad  ,
"Get instant CPU IO wait load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
CPUNiceLoad  ,
"Get instant CPU nice processes load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
CPUSytemLoad  ,
"Get instant CPU system load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
CPUUserLoad  ,
"Get instant CPU user load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
ProcessLoad  ,
"Get instant CPU load of the process/service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( cpu  ,
float  ,
CPULoad  ,
"Get instant CPU load of the server"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
uint32  ,
ShardId  ,
"Get value of shardId set for this particular service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
State  ,
"Set this value to 0 to shutdown the service and 1 to start the service"   
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
Scroller  ,
"current size in bytes of the sent queue size  
)

Definition at line 1755 of file service.cpp.

References nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
Uptime  ,
"time from the launching of the program  
)
NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
LaunchingDate  ,
"date of the launching of the program  
)

Definition at line 1728 of file service.cpp.

References LaunchingDate, and nlunreferenced().

NLNET::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
LSListenAddress  ,
"the listen address sended to the client to connect on this front_end"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
uint32  ,
TotalCallbackCalled  ,
"Total callback called number on layer 5"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
uint32  ,
NbUserUpdate  ,
"number of time the user IService::update() called"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
string  ,
CompilationMode  ,
"mode of the compilation"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
string  ,
CompilationDate  ,
"date of the compilation"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
string  ,
DefaultUserPriv  ,
"Default User priv for people who don't use the login system"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
uint32  ,
NbServerReceiveTask  ,
"Number of server receive thread"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
uint32  ,
NbServerListenTask  ,
"Number of server listen thread"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
uint32  ,
NbNetworkTask  ,
"Number of server and client thread"   
)
NLNET::NLMISC_CATEGORISED_VARIABLE ( nel  ,
uint32  ,
NbClientReceiveTask  ,
"Number of client receive thread"   
)
NLNET::NLMISC_CLASS_COMMAND_IMPL ( CModuleBase  ,
dump   
)
NLNET::NLMISC_CLASS_COMMAND_IMPL ( CModuleBase  ,
sendPing   
)

Definition at line 726 of file module.cpp.

References NLNET::IModuleSocket::getModuleList(), and nlunreferenced().

NLNET::NLMISC_CLASS_COMMAND_IMPL ( CModuleBase  ,
unplug   
)
NLNET::NLMISC_CLASS_COMMAND_IMPL ( CModuleBase  ,
plug   
)
NLNET::NLMISC_REGISTER_OBJECT ( IGatewayTransport  ,
CGatewayL5Transport  ,
std::string  ,
string(LAYER5_CLASS_NAME)   
)
NLNET::NLMISC_REGISTER_OBJECT ( IGatewayTransport  ,
CGatewayL3ClientTransport  ,
std::string  ,
string(LAYER3_CLIENT_CLASS_NAME)   
)
NLNET::NLMISC_REGISTER_OBJECT ( IGatewayTransport  ,
CGatewayL3ServerTransport  ,
std::string  ,
string(LAYER3_SERVER_CLASS_NAME)   
)
NLNET::NLMISC_SAFE_SINGLETON_IMPL ( CUnifiedNetwork   ) 
NLNET::NLMISC_SAFE_SINGLETON_IMPL ( CModuleManager   ) 
NLNET::NLMISC_SAFE_SINGLETON_IMPL ( CTransportIdAllocator   ) 
NLNET::NLNET_REGISTER_MODULE_FACTORY ( CLocalGateway  ,
"LocalGateway"   
)
NLNET::NLNET_REGISTER_MODULE_FACTORY ( CStandardGateway  ,
"StandardGateway"   
)
NLNET::nlunreferenced ( human   ) 
NLNET::nlunreferenced ( quiet   ) 
NLNET::nlunreferenced ( rawCommandString   ) 
static void NLNET::nmNewConnection ( TSockId  from,
void *  arg 
) [static]
static void NLNET::nmNewDisconnection ( TSockId  from,
void *  arg 
) [static]
void NLNET::notifyWSRemovedPendingCookie ( CLoginCookie &  cookie  ) 

Definition at line 87 of file login_server.cpp.

References NLMISC::CMemStream::serial().

Referenced by NLNET::CLoginServer::refreshPendingList().

bool NLNET::operator!= ( const CLoginCookie &  c1,
const CLoginCookie &  c2 
)

Definition at line 48 of file login_cookie.cpp.

bool NLNET::operator< ( const CInetAddress &  a1,
const CInetAddress &  a2 
)
bool NLNET::operator== ( const CInetAddress &  a1,
const CInetAddress &  a2 
)

Definition at line 146 of file inet_address.cpp.

References NLNET::CInetAddress::_SockAddr.

bool NLNET::operator== ( const CLoginCookie &  c1,
const CLoginCookie &  c2 
)
void NLNET::RegistrationBroadcast ( const std::string &  name,
TServiceId  sid,
const vector< CInetAddress > &  addr 
)
void NLNET::sendAdminEmail ( const char *  format,
  ... 
)
bool NLNET::sendEmail ( const std::string &  smtpServer,
const std::string &  from,
const std::string &  to,
const std::string &  subject,
const std::string &  body,
const std::string &  attachedFile = "",
bool  onlyCheck = false 
)

Send an email.

Parameters:
smtpServer must be a smtp email server.
from must be a valid email address. If empty, create a fake email address with anonymous<ipaddress>.com
to must be a valid email address.
subject subject of the email. Can be empty.
body body of the email. Can be empty.
attachedFile a filename that will be send with the email. Can be empty.
onlyCheck If true, It'll not send the mail but only check if it could be send.

Definition at line 127 of file email.cpp.

References buffer, NLNET::CSock::close(), NLNET::CTcpSock::connect(), NLNET::CSock::connected(), DefaultFrom, DefaultSMTPServer, DefaultTo, NLNET::CInetAddress::hostName(), NLNET::CInetAddress::localHost(), nlwarning, sendEMailCommand(), NLMISC::toLower(), uuencode(), and NLMISC::Exception::what().

Referenced by NLNET::IService::main().

bool NLNET::sendEMailCommand ( CTcpSock &  sock,
const std::string &  command,
uint32  code = 250 
)
void NLNET::serviceGetView ( uint32  rid,
const std::string &  rawvarpath,
TAdminViewResult answer,
bool  async = false 
)
void NLNET::setDefaultEmailParams ( const std::string &  smtpServer,
const std::string &  from,
const std::string &  to 
)

If you call this function, the default from (when from is "") used in the sendEmail will be the one you set by this function.

Definition at line 353 of file email.cpp.

References DefaultFrom, DefaultSMTPServer, and DefaultTo.

Referenced by NLNET::IService::main().

void NLNET::setInformations ( const std::vector< std::string > &  alarms,
const std::vector< std::string > &  graphupdate 
)
void NLNET::setRemoteClientCallback ( TRemoteClientCallback  cb  ) 

Definition at line 226 of file admin.cpp.

References RemoteClientCallback.

static void NLNET::sigHandler ( int  Sig  )  [static]
string NLNET::stringFromVectorPart ( const vector< uint8 > &  v,
uint32  pos,
uint32  len 
)

Definition at line 108 of file buf_sock.cpp.

References nlassertex.

TNetworkEvent NLNET::StringToEvent ( string &  s  ) 

string -> TNetworkEvent

Definition at line 52 of file message_recorder.cpp.

References Accepting, Connecting, ConnFailing, Disconnecting, Error, nlstop, Receiving, and Sending.

Referenced by NLNET::TMessageRecord::serial().

uint32 NLNET::stringToInternalIPAddress ( const std::string &  addr  ) 

Take a internet dot string and convert it in an uint32 internal format for example "128.64.32.16" -> 0xF0804020.

Definition at line 527 of file inet_address.cpp.

Referenced by NLNET::CUnifiedNetwork::addNetworkAssociation().

string NLNET::typeToString ( CTransportClass::TProp  type  ) 
void NLNET::uncbConnection ( TSockId  from,
void *   
)
void NLNET::uncbDisconnection ( TSockId  from,
void *   
)
void NLNET::uncbMsgProcessing ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &   
)
void NLNET::uncbServiceIdentification ( CMessage &  msgin,
TSockId  from,
CCallbackNetBase &  netbase 
)
void NLNET::uNetRegistrationBroadcast ( const string &  name,
TServiceId  sid,
const vector< CInetAddress > &  addr 
)
void NLNET::uNetUnregistrationBroadcast ( const string &  name,
TServiceId  sid,
const vector< CInetAddress > &  addr 
)
static void NLNET::UnregistrationBroadcast ( const std::string &  name,
TServiceId  sid,
const vector< CInetAddress > &  addr 
) [static]

Definition at line 148 of file net_manager.cpp.

References NLNET::TServiceId::get(), and nldebug.

Referenced by NLNET::CNetManager::init().

void NLNET::updateAdmin (  ) 
static void NLNET::UpdateAssertionThreadTimeoutCB ( IVariable var  )  [static]
uint64 NLNET::updateStatCounter ( uint64 counter,
uint64  newvalue 
) [inline]
static void NLNET::uuencode ( const char *  s,
const char *  store,
const int  length 
) [static]

Definition at line 59 of file email.cpp.

References tbl.

Referenced by sendEmail().

std::string NLNET::vectorCInetAddressToString ( const std::vector< CInetAddress > &  addrs  ) 
NLMISC::CVariable<bool> NLNET::VerboseLNETL0 ( "nel"  ,
"VerboseLNETL0"  ,
"Enable verbose logging in Network Layer 0 operations"  ,
false  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseLNETL1 ( "nel"  ,
"VerboseLNETL1"  ,
"Enable verbose logging in Network Layer 1 operations"  ,
false  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseLNETL2 ( "nel"  ,
"VerboseLNETL2"  ,
"Enable verbose logging in Network Layer 2 operations"  ,
false  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseLNETL3 ( "nel"  ,
"VerboseLNETL3"  ,
"Enable verbose logging in Network Layer 3 operations"  ,
false  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseLNETL4 ( "nel"  ,
"VerboseLNETL4"  ,
"Enable verbose logging in Network Layer 4 operations"  ,
false  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseLNETL5 ( "nel"  ,
"VerboseLNETL5"  ,
"Enable verbose logging in Network Layer 5 operations"  ,
true  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseLNETL6 ( "nel"  ,
"VerboseLNETL6"  ,
"Enable verbose logging in Network Layer 6 operations"  ,
true  ,
,
true   
)
NLMISC::CVariable<bool> NLNET::VerboseNETTC ( "nel"  ,
"VerboseNETTC"  ,
"Enable verbose logging in CTransportClass operations"  ,
true  ,
,
true   
)

Variable Documentation

bool NLNET::AcceptInvalidCookie = false [static]

Definition at line 88 of file admin.cpp.

Referenced by updateAdmin().

vector< CAlarm > NLNET::Alarms

Definition at line 83 of file admin.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND(), setInformations(), and updateAdmin().

const uint64 NLNET::AppIdDeadConnection = 0xDEAD [static]
CVariable<bool> NLNET::Bench("nel","Bench","1 if benching 0 if not", 0, true)

Referenced by NLNET::IService::main().

Initial value:
{
    { "R_SH_ID", cbReceiveShardId },
}

Definition at line 332 of file service.cpp.

Referenced by NLNET::IService::main().

Initial value:
{
    { "INFO",           cbInfo },
    { "GET_VIEW",       cbServGetView },
    { "STOPS",          cbStopService },
    { "EXEC_COMMAND",   cbExecCommand },
    { "ADMIN_PING",     cbAdminPing },
}

Definition at line 212 of file admin.cpp.

Referenced by NLNET::CTransportClass::init(), and initAdmin().

TUnifiedMsgCallback NLNET::cb = CUnifiedNetwork::getInstance()->findCallback (messageName)
Initial value:
{
    { "SV", cbShardValidation },
}

Definition at line 284 of file login_server.cpp.

Referenced by NLNET::CLoginServer::init().

string NLNET::CompilationDate [static]

Definition at line 142 of file service.cpp.

Referenced by NLNET::IService::main().

string NLNET::CompilationMode = nlMode

Definition at line 147 of file service.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND().

string NLNET::DefaultFrom [static]

Definition at line 38 of file email.cpp.

Referenced by sendEmail(), and setDefaultEmailParams().

CVariablePtr<uint32> NLNET::DefaultMaxExpectedBlockSize("nel","DefaultMaxExpectedBlockSize","If receiving more than this value in bytes, the connection will be dropped",&CBufNetBase::DefaultMaxExpectedBlockSize, true)

Receiving size limit.

CVariablePtr<uint32> NLNET::DefaultMaxSentBlockSize("nel","DefaultMaxSentBlockSize","If sending more than this value in bytes, the program may be stopped",&CBufNetBase::DefaultMaxSentBlockSize, true)

Sending size limit.

string NLNET::DefaultSMTPServer [static]

Definition at line 38 of file email.cpp.

Referenced by sendEmail(), and setDefaultEmailParams().

string NLNET::DefaultTo [static]

Definition at line 38 of file email.cpp.

Referenced by sendEmail(), and setDefaultEmailParams().

string NLNET::DefaultUserPriv = "" [static]

Definition at line 64 of file login_server.cpp.

Referenced by cfcbDefaultUserPriv(), and NLNET::CLoginServer::isValidCookie().

Definition at line 66 of file login_server.cpp.

Referenced by cbWSDisconnectClient(), and NLNET::CLoginServer::init().

Definition at line 112 of file service.cpp.

Definition at line 138 of file service.cpp.

Referenced by NLNET::IService::main().

Initial value:
{
    { "SV", cbShardValidate },
}

Definition at line 64 of file login_client.cpp.

Referenced by NLNET::CLoginClient::connectToShard().

CVariable<bool> NLNET::FlushSendingQueuesOnExit("nel","FlushSendingQueuesOnExit","Flag to enable/disable the flushing of the sending queues when the service is shut down", false, 0, true)

Referenced by NLNET::IService::main().

CVariable<bool> NLNET::FlushSendsBeforeSleep("nel","FlushSendsBeforeSleep","If true, send buffers will be flushed before sleep, not in next update", true, 0, true)

Reduce sending lag.

Definition at line 292 of file unitime.cpp.

Definition at line 293 of file unitime.cpp.

Definition at line 132 of file unitime.cpp.

Definition at line 133 of file unitime.cpp.

Definition at line 134 of file unitime.cpp.

Definition at line 85 of file admin.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND(), setInformations(), and updateAdmin().

A module ID of 0 mean 'not valid module ID'.

Definition at line 38 of file module_common.h.

const TSockId NLNET::InvalidSockId = (TSockId) NULL [static]
CVariable<uint32> NLNET::L5CallbackCount("nel","L5CallbackCount","The number of layer 5 callback received in the last loop", 0, 100)

The number of L5 callback treated.

Referenced by NLNET::IService::main().

CVariable<uint32> NLNET::L5CallbackTime("nel","L5CallbackTime","Time passed in the L5 callback function in the last loop (in ms)", 0, 100)

The time passed in callback during the loop.

Referenced by NLNET::IService::main().

CVariable<uint> NLNET::L5TotalBytesInLowLevelSendQueues("nel","L5TotalBytesInLowLevelSendQueues","Number of bytes pending in send queues (postponed by non-blocking send()) for network congestion monitoring. N/A if FlushSendsBeforeSleep disabled)", 0, 0, true)

Network congestion monitoring.

Definition at line 130 of file service.cpp.

Referenced by NLNET::IService::main().

Definition at line 129 of file service.cpp.

Referenced by NLNET::IService::main().

string NLNET::ListenAddr [static]
const char * NLNET::LockedSubMessageError = "a sub message is forbidden"

Definition at line 40 of file net_displayer.cpp.

Initial value:
{
    { "VLP", cbVerifyLoginPassword },
    { "SCS", cbShardChooseShard },
}

Definition at line 123 of file login_client.cpp.

Referenced by NLNET::CLoginClient::authenticateBegin().

string NLNET::messageName = args[1].c_str()

Definition at line 2312 of file unified_network.cpp.

bool NLNET::ModeTcp = 0 [static]

Definition at line 154 of file service.cpp.

Referenced by NLNET::IService::main(), and UpdateAssertionThreadTimeoutCB().

CVariable<string> NLNET::NamesOfOnlyServiceToFlushSending("nel","NamesOfOnlyServiceToFlushSending","If FlushSendingQueuesOnExit is on, only the sending queues to these specified services will be flushed (ex: \"WS:LS\"; all will be flushed if empty string)","", 0, true)

Referenced by NLNET::IService::main().

Initial value:
{
    { "RG", cbRegister },
    { "QP", cbQueryPort },

    { "RGB", cbRegisterBroadcast },
    { "UNB", cbUnregisterBroadcast }
}

Definition at line 231 of file naming_client.cpp.

Referenced by NLNET::CNamingClient::connect().

Definition at line 47 of file buf_client.cpp.

Referenced by NLNET::CClientReceiveTask::run().

Definition at line 49 of file buf_server.cpp.

Referenced by NLNET::CListenTask::run().

Definition at line 50 of file buf_server.cpp.

Referenced by NLNET::CServerReceiveTask::run().

Definition at line 145 of file service.cpp.

Referenced by NLNET::IService::main().

const char* NLNET::NegFiltersNames[] [static]
Initial value:
{
   "NegFiltersDebug",
   "NegFiltersInfo",
   "NegFiltersWarning",
   "NegFiltersAssert",
   "NegFiltersError",
   0
}

Definition at line 97 of file service.cpp.

Referenced by NLNET::IService::main().

Definition at line 63 of file net_log.cpp.

CVariable<sint32> NLNET::NetSpeedLoop("nel","NetSpeedLoop","duration of the last network loop (in ms)", 10, false)

Referenced by NLNET::IService::main().

Definition at line 77 of file login_server.cpp.

Referenced by cbShardValidation(), and NLNET::CLoginServer::init().

Definition at line 79 of file login_server.cpp.

Referenced by NLNET::CLoginServer::addNewCookieCallback(), and cbWSChooseShard().

Definition at line 302 of file module.h.

Definition at line 476 of file module.h.

Initial value:
{
    { "PACS_ASW", cbPacsAnswer }
}

Definition at line 41 of file pacs_client.h.

Referenced by NLNET::CPacsClient::connect().

Definition at line 106 of file naming_client.cpp.

Referenced by cbQueryPort(), and NLNET::CNamingClient::queryServicePort().

Definition at line 107 of file naming_client.cpp.

Referenced by cbQueryPort(), and NLNET::CNamingClient::queryServicePort().

string NLNET::Reason [static]

Definition at line 82 of file naming_client.cpp.

Referenced by cbRegister(), and NLNET::CNamingClient::registerService().

TServiceId* NLNET::RegisteredSID = NULL [static]

Definition at line 81 of file admin.cpp.

Referenced by serviceGetView(), and setRemoteClientCallback().

Definition at line 90 of file admin.cpp.

Referenced by addRequestAnswer(), addRequestWaitingNb(), cbServGetView(), and cleanRequest().

Definition at line 92 of file admin.cpp.

Referenced by cleanRequest().

CCallbackServer* NLNET::Server = NULL [static]
Initial value:
{
    { "AUT", cbServerAskUniversalTime },
}

Definition at line 274 of file unitime.cpp.

Referenced by NLNET::_CUniTime::installServer().

Referenced by if().

string NLNET::serviceName = args[0].c_str()

Definition at line 2311 of file unified_network.cpp.

string NLNET::ShardChooseShardAddr [static]

Definition at line 52 of file login_client.cpp.

Referenced by cbShardValidate(), and NLNET::CLoginClient::connectToShard().

string NLNET::ShardValidateReason [static]

Definition at line 53 of file login_client.cpp.

Referenced by cbShardValidate(), and NLNET::CLoginClient::connectToShard().

Definition at line 2307 of file unified_network.cpp.

const sint NLNET::Signal[] [static]
Initial value:
 {
  SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM
}

Definition at line 88 of file service.cpp.

Referenced by initSignal(), and sigHandler().

Definition at line 136 of file service.cpp.

Referenced by initSignal(), and sigHandler().

const char* NLNET::SignalName[] [static]
Initial value:
{
  "SIGABRT", "SIGFPE", "SIGILL", "SIGINT", "SIGSEGV", "SIGTERM"
}

Definition at line 92 of file service.cpp.

Referenced by sigHandler().

char NLNET::tbl[65] [static]
Initial value:
 {
    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
    'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
    'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
    'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
    'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
    'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
    'w', 'x', 'y', 'z', '0', '1', '2', '3',
    '4', '5', '6', '7', '8', '9', '+', '/',
    '=' 
}

Definition at line 41 of file email.cpp.

Referenced by NLMISC::CSString::isValidText(), and uuencode().

uint NLNET::ThreadCreator = 0 [static]

Definition at line 50 of file unified_network.cpp.

Referenced by NLNET::IService::main(), and uncbMsgProcessing().

Definition at line 48 of file unified_network.cpp.

Referenced by NLNET::IService::main(), and uncbMsgProcessing().

Initial value:
{
    { "UN_SIDENT", uncbServiceIdentification }
}

Definition at line 419 of file unified_network.cpp.

Referenced by NLNET::CUnifiedNetwork::init().

CVariable<uint32> NLNET::UpdateAssertionThreadTimeout("nel","UpdateAssertionThreadTimeout","in millisecond, timeout before thread assertion", 0, 0, true, UpdateAssertionThreadTimeoutCB) [static]

contains the correspondance between userid and the sockid

Definition at line 75 of file login_server.cpp.

Referenced by cbShardValidation(), cbWSDisconnectClient(), NLNET::CLoginServer::clientDisconnected(), and NLMISC_CATEGORISED_COMMAND().

CVariable<sint32> NLNET::UserSpeedLoop("nel","UserSpeedLoop","duration of the last user loop (in ms)", 10, false)

Referenced by NLNET::IService::main().

CVariable<uint32> NLNET::UseYieldMethod("nel","UseYieldMethod","0=select 1=usleep 2=nanosleep 3=sched_yield 4=none", 0, 0, true)

Yield method (Unix only).

NLMISC::CVariable<bool> NLNET::VerboseLNETL0("nel","VerboseLNETL0","Enable verbose logging in Network Layer 0 operations", false, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseLNETL1("nel","VerboseLNETL1","Enable verbose logging in Network Layer 1 operations", false, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseLNETL2("nel","VerboseLNETL2","Enable verbose logging in Network Layer 2 operations", false, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseLNETL3("nel","VerboseLNETL3","Enable verbose logging in Network Layer 3 operations", false, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseLNETL4("nel","VerboseLNETL4","Enable verbose logging in Network Layer 4 operations", false, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseLNETL5("nel","VerboseLNETL5","Enable verbose logging in Network Layer 5 operations", true, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseLNETL6("nel","VerboseLNETL6","Enable verbose logging in Network Layer 6 operations", true, 0, true)
NLMISC::CVariable<bool> NLNET::VerboseNETTC("nel","VerboseNETTC","Enable verbose logging in CTransportClass operations", true, 0, true)
Initial value:
{
    { "CS", cbWSChooseShard },
    { "DC", cbWSDisconnectClient },
}

Definition at line 213 of file login_server.cpp.

Referenced by NLNET::CLoginServer::connectToWS().


Generated on Thu Jan 7 08:30:19 2010 for NeL by  doxygen 1.6.1