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 CBufSock * | TSockId |
| 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< TSockId > | CConnections |
| 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< bool > | VerboseLNETL0 ("nel","VerboseLNETL0","Enable verbose logging in Network Layer 0 operations", false, 0, true) |
| NLMISC::CVariable< bool > | VerboseLNETL1 ("nel","VerboseLNETL1","Enable verbose logging in Network Layer 1 operations", false, 0, true) |
| NLMISC::CVariable< bool > | VerboseLNETL2 ("nel","VerboseLNETL2","Enable verbose logging in Network Layer 2 operations", false, 0, true) |
| NLMISC::CVariable< bool > | VerboseLNETL3 ("nel","VerboseLNETL3","Enable verbose logging in Network Layer 3 operations", false, 0, true) |
| NLMISC::CVariable< bool > | VerboseLNETL4 ("nel","VerboseLNETL4","Enable verbose logging in Network Layer 4 operations", false, 0, true) |
| NLMISC::CVariable< bool > | VerboseLNETL5 ("nel","VerboseLNETL5","Enable verbose logging in Network Layer 5 operations", true, 0, true) |
| NLMISC::CVariable< bool > | VerboseLNETL6 ("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< bool > | VerboseNETTC ("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< CGraphUpdate > | GraphUpdates |
| std::vector< CAlarm > | Alarms |
| 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< bool > | VerboseLNETL0 |
| NLMISC::CVariable< bool > | VerboseLNETL1 |
| NLMISC::CVariable< bool > | VerboseLNETL2 |
| NLMISC::CVariable< bool > | VerboseLNETL3 |
| NLMISC::CVariable< bool > | VerboseLNETL4 |
| NLMISC::CVariable< bool > | VerboseLNETL5 |
| NLMISC::CVariable< bool > | VerboseLNETL6 |
| CNetLog | NetLog |
| TCallbackItem | PacsCallbackArray [] |
| TUnifiedCallbackItem | EmptyCallbackArray [1] = { { "", NULL } } |
| NLMISC::CVariable< bool > | VerboseNETTC |
| TRemoteClientCallback | RemoteClientCallback = 0 |
| const uint32 | AlarmCheckDelay = 5 |
| vector< CRequest > | Requests |
| 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< CPendingUser > | PendingUsers |
| static CCallbackServer * | Server = 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, TSockId > | UserIdSockAssociations |
| 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 TServiceId * | RegisteredSID = 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< sint32 > | UserSpeedLoop ("nel","UserSpeedLoop","duration of the last user loop (in ms)", 10, false) |
| CVariable< sint32 > | NetSpeedLoop ("nel","NetSpeedLoop","duration of the last network loop (in ms)", 10, false) |
| CVariable< uint32 > | 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. | |
| CVariable< uint32 > | L5CallbackCount ("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< bool > | Bench ("nel","Bench","1 if benching 0 if not", 0, true) |
| static CTimeoutAssertionThread | MyTAT |
| static CVariable< uint32 > | UpdateAssertionThreadTimeout ("nel","UpdateAssertionThreadTimeout","in millisecond, timeout before thread assertion", 0, 0, true, UpdateAssertionThreadTimeoutCB) |
| CVariable< bool > | FlushSendingQueuesOnExit ("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< uint32 > | UseYieldMethod ("nel","UseYieldMethod","0=select 1=usleep 2=nanosleep 3=sched_yield 4=none", 0, 0, true) |
| Yield method (Unix only). | |
| CVariable< bool > | FlushSendsBeforeSleep ("nel","FlushSendsBeforeSleep","If true, send buffers will be flushed before sleep, not in next update", true, 0, true) |
| Reduce sending lag. | |
| CVariable< uint > | 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. | |
| CVariablePtr< uint32 > | DefaultMaxExpectedBlockSize ("nel","DefaultMaxExpectedBlockSize","If receiving more than this value in bytes, the connection will be dropped",&CBufNetBase::DefaultMaxExpectedBlockSize, true) |
| Receiving size limit. | |
| CVariablePtr< uint32 > | DefaultMaxSentBlockSize ("nel","DefaultMaxSentBlockSize","If sending more than this value in bytes, the program may be stopped",&CBufNetBase::DefaultMaxSentBlockSize, true) |
| Sending size limit. | |
| TCallbackItem | unServerCbArray [] |
| IThread * | AliveThread = 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 |
This namespace contains all network class.
| 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 |
| typedef std::vector< SAdminViewRow > NLNET::TAdminViewResult |
| typedef std::vector<std::string> NLNET::TAdminViewValues |
| typedef std::vector<std::string> NLNET::TAdminViewVarNames |
| typedef uint32 NLNET::TBlockSize |
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.
| typedef uint8 NLNET::TL5TransportId |
Definition at line 42 of file module_l5_transport.cpp.
| typedef NLMISC::CFactoryIndirect<IModuleFactory, std::string> NLNET::TLocalModuleFactoryRegistry |
Definition at line 190 of file module_manager.h.
| typedef uint32 NLNET::TModuleId |
General type definition Module identifier.
Definition at line 35 of file module_common.h.
Definition at line 44 of file module_common.h.
| typedef NLMISC::CSmartPtr<IModule> NLNET::TModulePtr |
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) |
| typedef bool(* NLNET::TRequestClosureClearanceCallback)() |
| typedef CBufSock* NLNET::TSockId |
Socket identifier.
Definition at line 37 of file buf_net_base.h.
| typedef std::pair<TNetCallback,TSockId> NLNET::TStoredNetCallback |
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.
| 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.
| 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.
| enum NLNET::TNetworkEvent |
Type of network events (if changed, don't forget to change EventToString() and StringToEvent().
Definition at line 47 of file message_recorder.h.
| enum NLNET::TPipeWay |
Access to the wake-up pipe (Unix only).
Definition at line 63 of file buf_net_base.h.
| void NLNET::addRequestAnswer | ( | uint32 | rid, | |
| const TAdminViewVarNames & | varNames, | |||
| const TAdminViewValues & | values | |||
| ) |
| static void NLNET::addRequestWaitingNb | ( | uint32 | rid | ) | [static] |
| static void NLNET::cbAdminPing | ( | CMessage & | , | |
| const std::string & | , | |||
| TServiceId | sid | |||
| ) | [static] |
| 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 | ) |
Definition at line 253 of file service.cpp.
References NLNET::IService::_DirectoryChangedCBI, NLNET::IService::ConvertSavesFilesDirectoryToFullPath, NLMISC::IVariable::fromString(), NLMISC::CVariable< T >::get(), NLNET::IService::getInstance(), NLMISC::ICommand::getName(), nlinfo, NLMISC::IVariableChangedCallback::onVariableChanged(), and NLMISC::IVariable::toString().
| static void NLNET::cbExecCommand | ( | CMessage & | msgin, | |
| const std::string & | , | |||
| TServiceId | sid | |||
| ) | [static] |
Definition at line 127 of file admin.cpp.
References NLMISC::CLog::addDisplayer(), NLNET::IService::CommandLog, NLNET::IService::getInstance(), nlinfo, NLMISC::CLog::removeDisplayer(), NLMISC::CMemStream::serial(), and NLMISC::IStream::serial().
| void NLNET::cbExecuteCommands | ( | CConfigFile::CVar & | var | ) |
Definition at line 561 of file service.cpp.
References NLMISC::CConfigFile::CVar::asString(), NLNET::IService::CommandLog, NLNET::IService::getInstance(), and NLMISC::CConfigFile::CVar::size().
Referenced by NLNET::IService::main().
| 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 | ) |
Definition at line 517 of file service.cpp.
References NLMISC::CLog::addNegativeFilter(), NLMISC::AssertLog, NLMISC::CConfigFile::CVar::asString(), NLNET::IService::ConfigFile, NLMISC::DebugLog, NLMISC::ErrorLog, NLNET::IService::getInstance(), NLMISC::CConfigFile::getVar(), NLMISC::InfoLog, NLMISC::CConfigFile::CVar::Name, nlinfo, nlstop, NLMISC::CLog::removeFilter(), NLMISC::CConfigFile::CVar::size(), and NLMISC::WarningLog.
Referenced by NLNET::IService::main().
| void NLNET::cbnbNewDisconnection | ( | TSockId | from, | |
| void * | data | |||
| ) |
Definition at line 55 of file callback_net_base.cpp.
References NLNET::CCallbackNetBase::_DisconnectionCallback, NLNET::CCallbackNetBase::_DisconnectionCbArg, LNETL3_DEBUG, and nlassert.
| static void NLNET::cbPacsAnswer | ( | CMessage & | msgin, | |
| TSockId | from, | |||
| CCallbackNetBase & | netbase | |||
| ) | [static] |
Definition at line 493 of file pacs_client.h.
References NLNET::CBufSock::appId(), NLNET::CPacsClient::getPositionSpeedCallback(), NLNET::CPacsClient::messageCallback(), nlassert, NLMISC::nlError(), NLNET_PACS_PROTOCOL_VERSION, NLNET::CPacsClient::rayTestCallback(), NLMISC::CMemStream::serial(), NLMISC::IStream::serialCheck(), NLMISC::CMemStream::serialCont(), NLNET::CPacsClient::testMoveCallback(), and NLNET::CPacsClient::triggerCallback().
| 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 | |||
| ) |
Definition at line 287 of file service.cpp.
References NLNET::TServiceId::get(), NLNET::IService::getInstance(), nlinfo, nlwarning, NLMISC::CMemStream::serial(), and NLNET::IService::setShardId().
| static void NLNET::cbRegister | ( | CMessage & | msgin, | |
| TSockId | from, | |||
| CCallbackNetBase & | netbase | |||
| ) | [static] |
Definition at line 85 of file naming_client.cpp.
References cbRegisterBroadcast(), nlassert, Reason, Registered, RegisteredSID, RegisteredSuccess, and NLMISC::CMemStream::serial().
| void NLNET::cbRegisterBroadcast | ( | CMessage & | msgin, | |
| TSockId | from, | |||
| CCallbackNetBase & | netbase | |||
| ) |
Definition at line 119 of file naming_client.cpp.
References _RegistrationBroadcastCallback, NLNET::CNamingClient::find(), NLNET::TServiceId::get(), nlinfo, nlstop, NLNET::CNamingClient::RegisteredServices, NLNET::CNamingClient::RegisteredServicesMutex, NLMISC::CMemStream::serial(), NLMISC::CMemStream::serialCont(), and vectorCInetAddressToString().
Referenced by cbRegister().
| static void NLNET::cbServerAskUniversalTime | ( | CMessage & | , | |
| TSockId | from, | |||
| CCallbackNetBase & | netbase | |||
| ) | [static] |
Definition at line 261 of file unitime.cpp.
References NLNET::CInetAddress::asString(), NLNET::_CUniTime::getUniTime(), NLNET::CCallbackNetBase::hostAddress(), NL_I64, nlinfo, nlstop, and NLNET::CCallbackNetBase::send().
| 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] |
Definition at line 107 of file login_client.cpp.
References NLMISC::CMemStream::serial(), ShardChooseShard, ShardChooseShardAddr, ShardChooseShardCookie, and ShardChooseShardReason.
| 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 | |||
| ) |
Definition at line 225 of file login_server.cpp.
References AcceptInvalidCookie, NLNET::CInetAddress::asString(), NLNET::CCallbackNetBase::authorizeOnly(), NLNET::CCallbackNetBase::disconnect(), NLNET::CLoginCookie::getUserId(), NLNET::CCallbackNetBase::hostAddress(), NLNET::CLoginServer::isValidCookie(), ModeTcp, NewClientCallback, nlwarning, NLNET::CCallbackNetBase::send(), NLMISC::CMemStream::serial(), Server, NLNET::CLoginCookie::set(), NLNET::CLoginCookie::toString(), and UserIdSockAssociations.
| void NLNET::cbSimVar | ( | CConfigFile::CVar & | var | ) |
Definition at line 189 of file udp_sim_sock.cpp.
References NLNET::CUdpSimSock::_InLag, NLNET::CUdpSimSock::_InPacketLoss, NLNET::CUdpSimSock::_OutLag, NLNET::CUdpSimSock::_OutPacketDisordering, NLNET::CUdpSimSock::_OutPacketDuplication, NLNET::CUdpSimSock::_OutPacketLoss, NLMISC::CConfigFile::CVar::asInt(), NLMISC::CConfigFile::CVar::Name, and nlstop.
| void NLNET::cbsNewConnection | ( | TSockId | from, | |
| void * | data | |||
| ) |
Definition at line 43 of file callback_server.cpp.
References NLNET::CCallbackServer::_ConnectionCallback, NLNET::CCallbackServer::_ConnectionCbArg, LNETL3_DEBUG, and nlassert.
| static void NLNET::cbStopService | ( | CMessage & | , | |
| const std::string & | serviceName, | |||
| TServiceId | sid | |||
| ) | [static] |
Definition at line 173 of file admin.cpp.
References NLNET::IService::exit(), NLNET::TServiceId::get(), NLNET::IService::getInstance(), and nlinfo.
| void NLNET::cbTCReceiveMessage | ( | NLNET::CMessage & | msgin, | |
| const string & | name, | |||
| NLNET::TServiceId | sid | |||
| ) |
Definition at line 260 of file transport_class.cpp.
References NLNET::CMessage::assignFromSubMessage(), NLNET::CMessage::clear(), NLNET::TServiceId::get(), NLNET::CTransportClass::LocalRegisteredClass, NETTC_DEBUG, nlassert, nlwarning, NLNET::CTransportClass::readHeader(), and NLNET::CTransportClass::TempMessage.
| void NLNET::cbTCReceiveOtherSideClass | ( | NLNET::CMessage & | msgin, | |
| const string & | name, | |||
| NLNET::TServiceId | sid | |||
| ) |
Definition at line 285 of file transport_class.cpp.
References NLNET::CTransportClass::CRegisteredBaseProp::Name, NETTC_DEBUG, NLNET::CTransportClass::registerOtherSideClass(), NLMISC::CMemStream::serial(), NLMISC::IStream::serialEnum(), NLNET::CTransportClass::CRegisteredBaseProp::Type, and typeToString().
| void NLNET::cbTCUpService | ( | const std::string & | serviceName, | |
| NLNET::TServiceId | sid, | |||
| void * | ||||
| ) |
Definition at line 328 of file transport_class.cpp.
References NLNET::TServiceId::get(), NETTC_DEBUG, and NLNET::CTransportClass::sendLocalRegisteredClass().
| void NLNET::cbUnregisterBroadcast | ( | CMessage & | msgin, | |
| TSockId | , | |||
| CCallbackNetBase & | ||||
| ) |
Definition at line 178 of file naming_client.cpp.
References NLNET::CNamingClient::_Connection, NLNET::CNamingClient::_MySId, _UnregistrationBroadcastCallback, NLNET::CNamingClient::CServiceEntry::Addr, NLNET::IService::exit(), NLNET::TServiceId::get(), NLNET::IService::getInstance(), NLNET::CNamingClient::CServiceEntry::Name, nlassertex, nlinfo, nlwarning, NLNET::CNamingClient::RegisteredServices, NLNET::CNamingClient::RegisteredServicesMutex, NLNET::CCallbackClient::send(), NLMISC::CMemStream::serial(), and NLNET::CNamingClient::CServiceEntry::SId.
| static void NLNET::cbVerifyLoginPassword | ( | CMessage & | msgin, | |
| TSockId | from, | |||
| CCallbackNetBase & | netbase | |||
| ) | [static] |
| void NLNET::cbWSChooseShard | ( | CMessage & | msgin, | |
| const std::string & | , | |||
| TServiceId | ||||
| ) |
Definition at line 116 of file login_server.cpp.
References NLNET::CPendingUser::Cookie, NLNET::CLoginCookie::getUserId(), ListenAddr, NewCookieCallback, nlinfo, nlwarning, PendingUsers, NLMISC::CMemStream::serial(), and NLNET::CLoginCookie::toString().
| void NLNET::cbWSDisconnectClient | ( | CMessage & | msgin, | |
| const std::string & | serviceName, | |||
| TServiceId | ||||
| ) |
Definition at line 186 of file login_server.cpp.
References NLNET::CCallbackServer::disconnect(), DisconnectClientCallback, ModeTcp, nlinfo, nlwarning, NLMISC::CMemStream::serial(), Server, and UserIdSockAssociations.
| void NLNET::cfcbAcceptInvalidCookie | ( | CConfigFile::CVar & | var | ) |
Definition at line 329 of file login_server.cpp.
References AcceptInvalidCookie, NLMISC::CConfigFile::CVar::asInt(), and nlinfo.
Referenced by NLNET::CLoginServer::init().
| void NLNET::cfcbDefaultUserPriv | ( | CConfigFile::CVar & | var | ) |
Definition at line 321 of file login_server.cpp.
References NLMISC::CConfigFile::CVar::asString(), DefaultUserPriv, and nlinfo.
Referenced by NLNET::CLoginServer::init().
| void NLNET::cfcbListenAddress | ( | CConfigFile::CVar & | var | ) |
Definition at line 316 of file login_server.cpp.
References NLMISC::CConfigFile::CVar::asString(), and NLNET::CLoginServer::setListenAddress().
Referenced by NLNET::CLoginServer::init().
| void NLNET::cfcbTimeBeforeEraseCookie | ( | CConfigFile::CVar & | var | ) |
Definition at line 337 of file login_server.cpp.
References NLMISC::CConfigFile::CVar::asInt(), nlinfo, and TimeBeforeEraseCookie.
Referenced by NLNET::CLoginServer::init().
| static void NLNET::cleanRequest | ( | ) | [static] |
Definition at line 305 of file admin.cpp.
References NLMISC::InfoLog, nldebug, nlinfo, nlwarning, Requests, RequestTimeout, NLMISC::CMemStream::serial(), and NLMISC::CMemStream::serialCont().
Referenced by updateAdmin().
| void NLNET::ClientConnection | ( | TSockId | from, | |
| void * | ||||
| ) |
Definition at line 275 of file login_server.cpp.
References NLNET::CBufSock::asString(), NLNET::CCallbackNetBase::authorizeOnly(), nldebug, and Server.
Referenced by NLNET::CLoginServer::init().
Definition at line 2194 of file unified_network.cpp.
References NLMISC::CLog::displayNL(), NLMISC::CEntityId::fromString(), fromString(), and NLMISC::CMemStream::serial().
| 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 | ( | ) |
Definition at line 892 of file module_manager.cpp.
References forceGatewayL5TransportLink(), forceGatewayLink(), forceGatewayTransportLink(), and forceLocalGatewayLink().
| void NLNET::forceLocalGatewayLink | ( | ) |
Referenced by forceLink().
| NLNET::fromString | ( | args | [0], | |
| sId | ||||
| ) |
Referenced by createMessage(), NLNET::IService::main(), NLMISC_CATEGORISED_DYNVARIABLE(), NLNET::CGatewayL3ClientTransport::onCommand(), NLNET::CGatewayL3ServerTransport::onCommand(), sendEMailCommand(), setInformations(), NLNET::CInetAddress::setNameAndPort(), updateAdmin(), and UpdateAssertionThreadTimeoutCB().
| 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:
Postconditions:
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] |
Definition at line 230 of file service.cpp.
References NLNET::IService::getInstance(), NLMISC::getThreadId(), sigHandler(), Signal, and SignalisedThread.
Referenced by NLNET::IService::main().
| 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 | ( | ) |
Referenced by NLMISC::CPolygon::toConvexPolygonsLocalAndBSP().
| 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" | , | |||
| "" | ||||
| ) |
Definition at line 1888 of file service.cpp.
References NLNET::IService::ConfigFile, NLMISC::CConfigFile::getFilename(), NLNET::IService::getInstance(), nlunreferenced(), and NLMISC::CConfigFile::UnknownVariables.
| NLNET::NLMISC_CATEGORISED_COMMAND | ( | nel | , | |
| displayConfigFile | , | |||
| "display the variables of the default configfile" | , | |||
| "" | ||||
| ) |
Definition at line 1877 of file service.cpp.
References NLNET::IService::ConfigFile, NLMISC::CConfigFile::display(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_COMMAND | ( | nel | , | |
| getWinDisplayerInfo | , | |||
| "display the info about the pos and size of the window displayer" | , | |||
| "" | ||||
| ) |
Definition at line 1864 of file service.cpp.
References NLNET::IService::getInstance(), NLMISC::CWindowDisplayer::getWindowPos(), nlunreferenced(), and NLNET::IService::WindowDisplayer.
| NLNET::NLMISC_CATEGORISED_COMMAND | ( | nel | , | |
| resetMeasures | , | |||
| "reset hierarchical timer" | , | |||
| "" | ||||
| ) |
Definition at line 1852 of file service.cpp.
References NLNET::IService::getInstance(), nlunreferenced(), and NLNET::IService::requireResetMeasures().
| NLNET::NLMISC_CATEGORISED_COMMAND | ( | nel | , | |
| serviceInfo | , | |||
| "display information about this service" | , | |||
| "" | ||||
| ) |
Definition at line 1818 of file service.cpp.
References NLNET::IService::_Args, NLNET::IService::_LongName, CompilationMode, NLNET::IService::getInstance(), NLNET::CNamingClient::info(), and nlunreferenced().
| 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" | , | |||
| "" | ||||
| ) |
Definition at line 537 of file naming_client.cpp.
References NLNET::CNamingClient::displayRegisteredServices(), and nlunreferenced().
| 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" | ||||
| ) |
Definition at line 2125 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessSystemLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakProcessUserLoad | , | |||
| "Get instant CPU user load of the process/service" | ||||
| ) |
Definition at line 2118 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessUserLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakCPUIOWaitLoad | , | |||
| "Get instant CPU IO wait load of the server" | ||||
| ) |
Definition at line 2111 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUIOWaitLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakCPUNiceLoad | , | |||
| "Get instant CPU nice processes load of the server" | ||||
| ) |
Definition at line 2104 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUNiceLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakCPUSytemLoad | , | |||
| "Get instant CPU system load of the server" | ||||
| ) |
Definition at line 2097 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUSystemLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakCPUUserLoad | , | |||
| "Get instant CPU user load of the server" | ||||
| ) |
Definition at line 2090 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLMISC::CCPUTimeStat::getCPUUserLoad(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakProcessLoad | , | |||
| "Get instant CPU load of the process/service" | ||||
| ) |
Definition at line 2083 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| PeakCPULoad | , | |||
| "Get instant CPU load of the server" | ||||
| ) |
Definition at line 2076 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPULoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanProcessSystemLoad | , | |||
| "Get instant CPU system load of the process/service" | ||||
| ) |
Definition at line 2067 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessSystemLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanProcessUserLoad | , | |||
| "Get instant CPU user load of the process/service" | ||||
| ) |
Definition at line 2060 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessUserLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanCPUIOWaitLoad | , | |||
| "Get instant CPU IO wait load of the server" | ||||
| ) |
Definition at line 2053 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUIOWaitLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanCPUNiceLoad | , | |||
| "Get instant CPU nice processes load of the server" | ||||
| ) |
Definition at line 2046 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUNiceLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanCPUSytemLoad | , | |||
| "Get instant CPU system load of the server" | ||||
| ) |
Definition at line 2039 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUSystemLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanCPUUserLoad | , | |||
| "Get instant CPU user load of the server" | ||||
| ) |
Definition at line 2032 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLMISC::CCPUTimeStat::getCPUUserLoad(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanProcessLoad | , | |||
| "Get instant CPU load of the process/service" | ||||
| ) |
Definition at line 2025 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| MeanCPULoad | , | |||
| "Get instant CPU load of the server" | ||||
| ) |
Definition at line 2018 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPULoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| ProcessSystemLoad | , | |||
| "Get instant CPU system load of the process/service" | ||||
| ) |
Definition at line 2010 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessSystemLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| ProcessUserLoad | , | |||
| "Get instant CPU user load of the process/service" | ||||
| ) |
Definition at line 2003 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessUserLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| CPUIOWaitLoad | , | |||
| "Get instant CPU IO wait load of the server" | ||||
| ) |
Definition at line 1996 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUIOWaitLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| CPUNiceLoad | , | |||
| "Get instant CPU nice processes load of the server" | ||||
| ) |
Definition at line 1989 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUNiceLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| CPUSytemLoad | , | |||
| "Get instant CPU system load of the server" | ||||
| ) |
Definition at line 1982 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPUSystemLoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| CPUUserLoad | , | |||
| "Get instant CPU user load of the server" | ||||
| ) |
Definition at line 1975 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLMISC::CCPUTimeStat::getCPUUserLoad(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| ProcessLoad | , | |||
| "Get instant CPU load of the process/service" | ||||
| ) |
Definition at line 1968 of file service.cpp.
References NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), NLMISC::CCPUTimeStat::getProcessLoad(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | cpu | , | |
| float | , | |||
| CPULoad | , | |||
| "Get instant CPU load of the server" | ||||
| ) |
Definition at line 1961 of file service.cpp.
References NLMISC::CCPUTimeStat::getCPULoad(), NLNET::IService::getCPUUsageStats(), NLNET::IService::getInstance(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | nel | , | |
| uint32 | , | |||
| ShardId | , | |||
| "Get value of shardId set for this particular service" | ||||
| ) |
Definition at line 1950 of file service.cpp.
References NLNET::IService::getInstance(), NLNET::IService::getShardId(), and nlunreferenced().
| NLNET::NLMISC_CATEGORISED_DYNVARIABLE | ( | nel | , | |
| string | , | |||
| State | , | |||
| "Set this value to 0 to shutdown the service and 1 to start the service" | ||||
| ) |
Definition at line 1909 of file service.cpp.
References ExitSignalAsked, NLNET::IService::getFullStatus(), NLNET::IService::getInstance(), nlinfo, nlunreferenced(), nlwarning, and NLNET::IService::setCurrentStatus().
| 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" | ||||
| ) |
Definition at line 1734 of file service.cpp.
References fromString(), LaunchingDate, NLMISC::secondsToHumanReadable(), and NLMISC::toString().
| 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" | ||||
| ) |
Definition at line 564 of file login_server.cpp.
References NLNET::CInetAddress::asIPString(), ListenAddr, NLNET::CBufServer::listenAddress(), nlinfo, nlunreferenced(), nlwarning, and Server.
| 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 | ||||
| ) |
Definition at line 765 of file module.cpp.
References NLNET::IModuleSocket::getModuleList(), NLNET::IModuleSocket::getSocketName(), and nlunreferenced().
| 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 | ||||
| ) |
Definition at line 687 of file module.cpp.
References NLNET::IModuleManager::getInstance(), NLNET::IModuleManager::getModuleSocket(), NLNET::IModuleSocket::getSocketName(), and nlunreferenced().
| NLNET::NLMISC_CLASS_COMMAND_IMPL | ( | CModuleBase | , | |
| plug | ||||
| ) |
Definition at line 654 of file module.cpp.
References NLNET::IModuleManager::getInstance(), NLNET::IModuleManager::getModuleSocket(), NLNET::IModuleSocket::getSocketName(), and nlunreferenced().
| 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] |
Definition at line 55 of file net_manager.cpp.
References NLNET::CBaseStruct::ConnectionCallback, NLNET::CBaseStruct::ConnectionCbArg, NLNET::CBaseStruct::Name, nlassert, and nldebug.
Referenced by NLNET::CNetManager::addServer().
| static void NLNET::nmNewDisconnection | ( | TSockId | from, | |
| void * | arg | |||
| ) | [static] |
Definition at line 67 of file net_manager.cpp.
References NLNET::CBaseStruct::DisconnectionCallback, NLNET::CBaseStruct::DisconnectionCbArg, NLNET::CBaseStruct::Name, nlassert, and nldebug.
Referenced by NLNET::CNetManager::addClient(), NLNET::CNetManager::addServer(), and NLNET::CNetManager::createConnection().
| 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 | |||
| ) |
Definition at line 156 of file inet_address.cpp.
References NLNET::CInetAddress::_SockAddr, and NLNET::CInetAddress::port().
| 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 | |||
| ) |
Definition at line 38 of file login_cookie.cpp.
References NLNET::CLoginCookie::_UserAddr, NLNET::CLoginCookie::_UserId, NLNET::CLoginCookie::_UserKey, NLNET::CLoginCookie::_Valid, and nlassert.
| void NLNET::RegistrationBroadcast | ( | const std::string & | name, | |
| TServiceId | sid, | |||
| const vector< CInetAddress > & | addr | |||
| ) |
Definition at line 115 of file net_manager.cpp.
References NLNET::CNetManager::_BaseMap, NLNET::CBaseStruct::Client, NLNET::CNetManager::createConnection(), NLNET::TServiceId::get(), NLNET::CBaseStruct::Group, and nldebug.
| void NLNET::sendAdminEmail | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 599 of file admin.cpp.
References NLNET::IService::getHostName(), NLNET::IService::getInstance(), NLNET::IService::getServiceUnifiedName(), nlinfo, NLMISC_CONVERT_VARGS, and NLMISC::CMemStream::serial().
Referenced by updateAdmin().
| 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.
| 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().
Definition at line 84 of file email.cpp.
References NLNET::CInetAddress::asString(), buffer, fromString(), nlwarning, NLNET::CSock::Ok, NLNET::CSock::receive(), NLNET::CSock::remoteAddr(), and NLNET::CSock::send().
Referenced by sendEmail().
| void NLNET::serviceGetView | ( | uint32 | rid, | |
| const std::string & | rawvarpath, | |||
| TAdminViewResult & | answer, | |||
| bool | async = false | |||
| ) |
Definition at line 381 of file admin.cpp.
References NLMISC::CLog::addDisplayer(), addRequestAnswer(), addRequestWaitingNb(), NLMISC::CMemDisplayer::clear(), CVarPath::Destination, CVarPath::empty(), NLNET::IService::getInstance(), NLNET::IService::getServiceUnifiedName(), CVarPath::isFinal(), isRemoteCommand(), NLMISC::CMemDisplayer::lockStrings(), nlinfo, RemoteClientCallback, NLMISC::CMemDisplayer::setParam(), and NLMISC::CMemDisplayer::unlockStrings().
Referenced by cbServGetView(), and NLMISC_CATEGORISED_COMMAND().
| 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 | |||
| ) |
Definition at line 789 of file admin.cpp.
References Alarms, CVarPath::Destination, fromString(), NLNET::IService::getInstance(), NLNET::IService::getServiceShortName(), NLNET::IService::getServiceUnifiedName(), GraphUpdates, and nlinfo.
Referenced by cbInfo().
| void NLNET::setRemoteClientCallback | ( | TRemoteClientCallback | cb | ) |
Definition at line 226 of file admin.cpp.
References RemoteClientCallback.
| static void NLNET::sigHandler | ( | int | Sig | ) | [static] |
Definition at line 176 of file service.cpp.
References ExitSignalAsked, NLNET::IService::getInstance(), NLMISC::getThreadId(), nldebug, nlinfo, nlwarning, Signal, SignalisedThread, and SignalName.
Referenced by initSignal().
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 | ) |
Definition at line 82 of file transport_class.cpp.
References NLNET::CTransportClass::PropUKN.
Referenced by cbTCReceiveOtherSideClass(), NLNET::CTransportClass::displayDifferentClass(), NLNET::CTransportClass::displayLocalRegisteredClass(), and NLNET::CTransportClass::registerOtherSideClass().
| void NLNET::uncbConnection | ( | TSockId | from, | |
| void * | ||||
| ) |
Definition at line 170 of file unified_network.cpp.
References AppIdDeadConnection, NLNET::CBufSock::asString(), nlinfo, and NLNET::CBufSock::setAppId().
| void NLNET::uncbDisconnection | ( | TSockId | from, | |
| void * | ||||
| ) |
Definition at line 177 of file unified_network.cpp.
References NLNET::CUnifiedNetwork::_ConnectionToReset, NLNET::CBufSock::appId(), AppIdDeadConnection, NLNET::CBufSock::asString(), AUTOCHECK_DISPLAY, NLNET::CUnifiedNetwork::CUnifiedConnection::AutoRetry, NLNET::CUnifiedNetwork::callServiceDownCallback(), NLNET::CUnifiedNetwork::CUnifiedConnection::Connections, NLNET::TServiceId::get(), NLNET::CUnifiedNetwork::getUnifiedConnection(), NLNET::CUnifiedNetwork::CUnifiedConnection::IsExternal, nlinfo, NLNET::CUnifiedNetwork::removeNamedCnx(), NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceId, NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceName, and NLNET::CBufSock::setAppId().
| void NLNET::uncbMsgProcessing | ( | CMessage & | msgin, | |
| TSockId | from, | |||
| CCallbackNetBase & | ||||
| ) |
Definition at line 348 of file unified_network.cpp.
References NLNET::CUnifiedNetwork::_Callbacks, NLNET::CBufSock::appId(), AppIdDeadConnection, AUTOCHECK_DISPLAY, NLNET::TServiceId::get(), NLNET::CMessage::getName(), NLNET::CUnifiedNetwork::getUnifiedConnection(), H_AUTO, NL_I64, nlwarning, NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceName, TimeInCallback, TotalCallbackCalled, and NLNET::CUnifiedNetwork::CUnifiedConnection::TotalCallbackCalled.
| void NLNET::uncbServiceIdentification | ( | CMessage & | msgin, | |
| TSockId | from, | |||
| CCallbackNetBase & | netbase | |||
| ) |
Definition at line 255 of file unified_network.cpp.
References NLNET::CUnifiedNetwork::_DefaultNetwork, NLNET::CUnifiedNetwork::_IdCnx, NLNET::CUnifiedNetwork::_NetworkAssociations, NLNET::CUnifiedNetwork::_UsedConnection, NLNET::CUnifiedNetwork::addNamedCnx(), NLNET::CBufSock::appId(), AppIdDeadConnection, NLNET::CBufSock::asString(), AUTOCHECK_DISPLAY, NLNET::CUnifiedNetwork::callServiceUpCallback(), NLNET::CCallbackNetBase::disconnect(), NLNET::TServiceId::get(), NLNET::CCallbackNetBase::hostAddress(), NL_I64, nlassert, nlinfo, nlwarning, NLNET::CUnifiedNetwork::CUnifiedConnection::NotUsed, NLMISC::CMemStream::serial(), NLNET::TServiceId::set(), and NLNET::CBufSock::setAppId().
| void NLNET::uNetRegistrationBroadcast | ( | const string & | name, | |
| TServiceId | sid, | |||
| const vector< CInetAddress > & | addr | |||
| ) |
Definition at line 79 of file unified_network.cpp.
References AUTOCHECK_DISPLAY, NLNET::TServiceId::get(), nlassert, nldebug, NLNET::CUnifiedNetwork::CUnifiedConnection::NotUsed, and vectorCInetAddressToString().
| void NLNET::uNetUnregistrationBroadcast | ( | const string & | name, | |
| TServiceId | sid, | |||
| const vector< CInetAddress > & | addr | |||
| ) |
Definition at line 116 of file unified_network.cpp.
References AppIdDeadConnection, AUTOCHECK_DISPLAY, NLNET::CUnifiedNetwork::CUnifiedConnection::Connections, NLNET::TServiceId::get(), nldebug, NLNET::CUnifiedNetwork::CUnifiedConnection::reset(), NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceId, NLNET::CUnifiedNetwork::CUnifiedConnection::ServiceName, and vectorCInetAddressToString().
| 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 | ( | ) |
Definition at line 635 of file admin.cpp.
References NLMISC::CLog::addDisplayer(), AlarmCheckDelay, Alarms, cleanRequest(), NLMISC::CMemDisplayer::clear(), fromString(), NLNET::IService::getInstance(), NLNET::IService::getServiceAliasName(), NLNET::IService::getServiceShortName(), GraphUpdates, NLMISC::humanReadableToBytes(), NLMISC::CMemDisplayer::lockStrings(), nlinfo, nlwarning, sendAdminEmail(), NLMISC::CMemStream::serial(), and NLMISC::CMemDisplayer::unlockStrings().
Referenced by NLNET::IService::main().
| static void NLNET::UpdateAssertionThreadTimeoutCB | ( | IVariable & | var | ) | [static] |
Definition at line 155 of file service.cpp.
References fromString(), MyTAT, CTimeoutAssertionThread::timeout(), and NLMISC::IVariable::toString().
Definition at line 331 of file buf_client.cpp.
Referenced by NLNET::CBufClient::newBytesDownloaded(), and NLNET::CBufClient::newBytesUploaded().
| static void NLNET::uuencode | ( | const char * | s, | |
| const char * | store, | |||
| const int | length | |||
| ) | [static] |
| std::string NLNET::vectorCInetAddressToString | ( | const std::vector< CInetAddress > & | addrs | ) |
Definition at line 514 of file inet_address.cpp.
Referenced by NLNET::CUnifiedNetwork::addService(), cbRegisterBroadcast(), uNetRegistrationBroadcast(), and uNetUnregistrationBroadcast().
| 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 | ||||
| ) |
TBroadcastCallback NLNET::_RegistrationBroadcastCallback = NULL [static] |
Definition at line 53 of file naming_client.cpp.
Referenced by cbRegisterBroadcast(), and NLNET::CNamingClient::setRegistrationBroadcastCallback().
TBroadcastCallback NLNET::_UnregistrationBroadcastCallback = NULL [static] |
Definition at line 54 of file naming_client.cpp.
Referenced by cbUnregisterBroadcast(), and NLNET::CNamingClient::setUnregistrationBroadcastCallback().
bool NLNET::AcceptInvalidCookie = false [static] |
Definition at line 62 of file login_server.cpp.
Referenced by NLNET::CLoginServer::acceptsInvalidCookie(), cbShardValidation(), cfcbAcceptInvalidCookie(), and NLNET::CLoginServer::isValidCookie().
| const uint32 NLNET::AlarmCheckDelay = 5 |
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().
| IThread* NLNET::AliveThread = NULL |
Definition at line 460 of file unified_network.cpp.
Referenced by NLNET::CUnifiedNetwork::init(), and NLNET::CUnifiedNetwork::release().
const uint64 NLNET::AppIdDeadConnection = 0xDEAD [static] |
Definition at line 46 of file unified_network.cpp.
Referenced by uncbConnection(), uncbDisconnection(), uncbMsgProcessing(), uncbServiceIdentification(), and uNetUnregistrationBroadcast().
| CVariable<bool> NLNET::Bench("nel","Bench","1 if benching 0 if not", 0, true) |
Referenced by NLNET::IService::main().
| uint8 NLNET::buffer[10000] |
Definition at line 240 of file udp_sim_sock.cpp.
Referenced by NLNET::CBufSock::advertiseSystemEvent(), NLNET::CUdpSimSock::dataAvailable(), NLNET::CBufServer::dataAvailable(), NLNET::CBufClient::dataAvailable(), sendEmail(), and sendEMailCommand().
{
{ "R_SH_ID", cbReceiveShardId },
}
Definition at line 332 of file service.cpp.
Referenced by NLNET::IService::main().
static TUnifiedCallbackItem NLNET::CallbackArray [static] |
{
{ "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) |
const TCallbackItem NLNET::ClientCallbackArray[] [static] |
{
{ "SV", cbShardValidation },
}
Definition at line 284 of file login_server.cpp.
Referenced by NLNET::CLoginServer::init().
CNetDisplayer NLNET::commandDisplayer(false) [static] |
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().
TDisconnectClientCallback NLNET::DisconnectClientCallback = NULL [static] |
Definition at line 66 of file login_server.cpp.
Referenced by cbWSDisconnectClient(), and NLNET::CLoginServer::init().
| TUnifiedCallbackItem NLNET::EmptyCallbackArray = { { "", NULL } } |
Definition at line 112 of file service.cpp.
sint NLNET::ExitSignalAsked = 0 [static] |
Definition at line 117 of file service.cpp.
Referenced by NLNET::IService::exit(), NLNET::IService::main(), NLMISC_CATEGORISED_COMMAND(), NLMISC_CATEGORISED_DYNVARIABLE(), and sigHandler().
CFileDisplayer NLNET::fd [static] |
Definition at line 138 of file service.cpp.
Referenced by NLNET::IService::main().
TCallbackItem NLNET::FESCallbackArray[] [static] |
{
{ "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.
bool NLNET::GetClientUniversalTime [static] |
Definition at line 292 of file unitime.cpp.
TTime NLNET::GetClientUniversalTimeUniTime [static] |
Definition at line 293 of file unitime.cpp.
bool NLNET::GetUniversalTime [static] |
Definition at line 132 of file unitime.cpp.
Definition at line 133 of file unitime.cpp.
TTime NLNET::GetUniversalTimeUniTime [static] |
Definition at line 134 of file unitime.cpp.
| vector< CGraphUpdate > NLNET::GraphUpdates |
Definition at line 85 of file admin.cpp.
Referenced by NLMISC_CATEGORISED_COMMAND(), setInformations(), and updateAdmin().
| const TModuleId NLNET::INVALID_MODULE_ID = 0 |
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] |
Definition at line 42 of file buf_net_base.h.
Referenced by NLNET::CServerReceiveTask::addNewSocket(), NLNET::CServerReceiveTask::addToRemoveSet(), NLNET::CBufSock::advertiseDisconnection(), NLNET::CBufSock::advertiseSystemEvent(), NLNET::CBufSock::asString(), NLNET::CCallbackNetBase::authorizeOnly(), NLNET::CGatewayL3ClientTransport::connect(), NLNET::CBufSock::connect(), NLNET::CServerBufSock::CServerBufSock(), NLNET::CCallbackClient::disconnect(), NLNET::CBufSock::disconnect(), NLNET::CBufServer::disconnect(), NLNET::CBufServer::displaySendQueueStat(), NLNET::CCallbackClient::flush(), NLNET::CBufSock::flush(), NLNET::CBufServer::flush(), NLNET::CCallbackServer::flush(), NLNET::CUnifiedNetwork::getNetBase(), NLNET::CBufServer::getSendQueueSize(), NLNET::CCallbackServer::getSockId(), NLNET::CCallbackClient::getSockId(), NLNET::CBufServer::hostAddress(), NLNET::CCallbackServer::hostAddress(), NLNET::CBufSock::pushBuffer(), NLNET::CBufServer::pushBufferToHost(), NLNET::CCallbackClient::receive(), NLNET::CNonBlockingBufSock::receivePart(), NLNET::CUnifiedNetwork::release(), NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::reset(), NLNET::CCallbackServer::send(), NLNET::CCallbackClient::send(), NLNET::CBufServer::send(), NLNET::CBufServer::setSizeFlushTrigger(), NLNET::CBufSock::setTimeFlushTrigger(), NLNET::CBufServer::setTimeFlushTrigger(), NLNET::CBufSock::update(), NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::valid(), and NLNET::CBufSock::~CBufSock().
| const uint32 NLNET::KEEP_ALIVE_DELAY = 120 |
Definition at line 49 of file module_gateway_transport.cpp.
Referenced by NLNET::CGatewayL3ClientTransport::update(), and NLNET::CGatewayL3ServerTransport::update().
| 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().
uint32 NLNET::LaunchingDate [static] |
Definition at line 143 of file service.cpp.
Referenced by NLNET::IService::getLaunchingDate(), NLNET::IService::main(), and NLMISC_CATEGORISED_DYNVARIABLE().
string NLNET::ListenAddr [static] |
Definition at line 60 of file login_server.cpp.
Referenced by cbWSChooseShard(), NLNET::CLoginServer::getListenAddress(), NLMISC_CATEGORISED_DYNVARIABLE(), and NLNET::CLoginServer::setListenAddress().
| const char * NLNET::LockedSubMessageError = "a sub message is forbidden" |
Definition at line 39 of file message.cpp.
Referenced by NLNET::CMessage::clear(), NLNET::CMessage::invert(), and NLNET::CMessage::operator=().
| const sint16 NLNET::LOG_CBINDEX = 0 |
Definition at line 40 of file net_displayer.cpp.
TCallbackItem NLNET::LSCallbackArray[] [static] |
{
{ "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 69 of file login_server.cpp.
Referenced by cbShardValidation(), cbWSDisconnectClient(), NLNET::CLoginServer::clientDisconnected(), NLNET::CLoginServer::init(), NLMISC_CATEGORISED_COMMAND(), and NLNET::CLoginServer::setListenAddress().
Referenced by NLNET::CUnifiedNetwork::addService(), NLNET::CUnifiedNetwork::autoReconnect(), NLNET::CNetDisplayer::doDisplay(), NLNET::CMessage::extractStreamFromPos(), NLNET::CModuleTask::flushMessageQueue(), NLNET::CModuleBase::invokeModuleOperation(), NLNET::CGatewayL5Transport::onAddTransport(), and NLNET::CGatewayL5Transport::onServiceUp().
CTimeoutAssertionThread NLNET::MyTAT [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().
TCallbackItem NLNET::NamingClientCallbackArray[] [static] |
{
{ "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 34 of file buf_net_base.cpp.
Referenced by NLNET::CServerReceiveTask::run(), NLNET::CListenTask::run(), and 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().
uint32 NLNET::NbUserUpdate = 0 [static] |
Definition at line 145 of file service.cpp.
Referenced by NLNET::IService::main().
const char* NLNET::NegFiltersNames[] [static] |
{
"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().
| const TModulePtr NLNET::NullModule |
{
{ "PACS_ASW", cbPacsAnswer }
}
Definition at line 41 of file pacs_client.h.
Referenced by NLNET::CPacsClient::connect().
list<CPendingUser> NLNET::PendingUsers [static] |
Definition at line 57 of file login_server.cpp.
Referenced by cbWSChooseShard(), NLNET::CLoginServer::getNbPendingUsers(), NLNET::CLoginServer::isValidCookie(), NLMISC_CATEGORISED_COMMAND(), and NLNET::CLoginServer::refreshPendingList().
bool NLNET::QueryPort [static] |
Definition at line 106 of file naming_client.cpp.
Referenced by cbQueryPort(), and NLNET::CNamingClient::queryServicePort().
uint16 NLNET::QueryPortPort [static] |
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().
bool NLNET::Registered [static] |
Definition at line 79 of file naming_client.cpp.
Referenced by cbRegister(), NLNET::CNamingClient::registerService(), and NLNET::CNamingClient::registerServiceWithSId().
TServiceId* NLNET::RegisteredSID = NULL [static] |
Definition at line 81 of file naming_client.cpp.
Referenced by cbRegister(), NLNET::CNamingClient::registerService(), and NLNET::CNamingClient::registerServiceWithSId().
bool NLNET::RegisteredSuccess [static] |
Definition at line 80 of file naming_client.cpp.
Referenced by cbRegister(), NLNET::CNamingClient::registerService(), and NLNET::CNamingClient::registerServiceWithSId().
Definition at line 81 of file admin.cpp.
Referenced by serviceGetView(), and setRemoteClientCallback().
| vector<CRequest> NLNET::Requests |
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] |
Definition at line 59 of file login_server.cpp.
Referenced by cbShardValidation(), cbWSDisconnectClient(), ClientConnection(), NLNET::CLoginServer::init(), NLMISC_CATEGORISED_DYNVARIABLE(), and NLNET::CLoginServer::setListenAddress().
{
{ "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.
bool NLNET::ShardChooseShard [static] |
Definition at line 103 of file login_client.cpp.
Referenced by cbShardChooseShard(), NLNET::CLoginClient::confirmConnection(), NLNET::CLoginClient::selectShardBegin(), and NLNET::CLoginClient::selectShardUpdate().
string NLNET::ShardChooseShardAddr [static] |
Definition at line 105 of file login_client.cpp.
Referenced by cbShardChooseShard(), NLNET::CLoginClient::confirmConnection(), NLNET::CLoginClient::selectShardUpdate(), and NLNET::CLoginClient::wantToConnectToShard().
string NLNET::ShardChooseShardCookie [static] |
Definition at line 106 of file login_client.cpp.
Referenced by cbShardChooseShard(), NLNET::CLoginClient::confirmConnection(), NLNET::CLoginClient::selectShardUpdate(), and NLNET::CLoginClient::wantToConnectToShard().
string NLNET::ShardChooseShardReason [static] |
Definition at line 104 of file login_client.cpp.
Referenced by cbShardChooseShard(), NLNET::CLoginClient::confirmConnection(), NLNET::CLoginClient::selectShardBegin(), and NLNET::CLoginClient::selectShardUpdate().
bool NLNET::ShardValidate [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] |
{
SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM
}
Definition at line 88 of file service.cpp.
Referenced by initSignal(), and sigHandler().
uint NLNET::SignalisedThread [static] |
Definition at line 136 of file service.cpp.
Referenced by initSignal(), and sigHandler().
const char* NLNET::SignalName[] [static] |
{
"SIGABRT", "SIGFPE", "SIGILL", "SIGINT", "SIGSEGV", "SIGTERM"
}
Definition at line 92 of file service.cpp.
Referenced by sigHandler().
char NLNET::tbl[65] [static] |
{
'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 44 of file unified_network.cpp.
Referenced by NLNET::CUnifiedNetwork::addService(), NLNET::CUnifiedNetwork::connect(), NLNET::CUnifiedNetwork::getNetBase(), NLNET::CUnifiedNetwork::init(), NLNET::CUnifiedNetwork::release(), NLNET::CUnifiedNetwork::send(), and NLNET::CUnifiedNetwork::sendAll().
uint NLNET::TimeBeforeEraseCookie = 15*60 [static] |
Definition at line 72 of file login_server.cpp.
Referenced by cfcbTimeBeforeEraseCookie(), and NLNET::CLoginServer::refreshPendingList().
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().
{
{ "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) |
bool NLNET::VerifyLoginPassword [static] |
Definition at line 74 of file login_client.cpp.
Referenced by NLNET::CLoginClient::authenticateBegin(), NLNET::CLoginClient::authenticateUpdate(), and cbVerifyLoginPassword().
string NLNET::VerifyLoginPasswordReason [static] |
Definition at line 75 of file login_client.cpp.
Referenced by NLNET::CLoginClient::authenticateBegin(), NLNET::CLoginClient::authenticateUpdate(), and cbVerifyLoginPassword().
TUnifiedCallbackItem NLNET::WSCallbackArray[] [static] |
{
{ "CS", cbWSChooseShard },
{ "DC", cbWSDisconnectClient },
}
Definition at line 213 of file login_server.cpp.
Referenced by NLNET::CLoginServer::connectToWS().
1.6.1