From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/namespaceNLNET.html | 5696 ++++++++++++++++++++++++++++++++++ 1 file changed, 5696 insertions(+) create mode 100644 docs/doxygen/nel/namespaceNLNET.html (limited to 'docs/doxygen/nel/namespaceNLNET.html') diff --git a/docs/doxygen/nel/namespaceNLNET.html b/docs/doxygen/nel/namespaceNLNET.html new file mode 100644 index 00000000..1fc5b52c --- /dev/null +++ b/docs/doxygen/nel/namespaceNLNET.html @@ -0,0 +1,5696 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLNET Namespace Reference

This namespace contains all network class. +More... +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Compounds

class  NLNET::_CUniTime
 This class provide a independant universal time system. More...

struct  NLNET::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  NLNET::CBufClient
 Client class for layer 1. More...

struct  NLNET::CBufferizedOutPacket
class  NLNET::CBufNetBase
 Layer 1. More...

class  NLNET::CBufServer
 Server class for layer 1. More...

class  NLNET::CBufSock
 CBufSock A socket and its sending buffer. More...

class  NLNET::CCallbackClient
 Client class for layer 3. More...

class  NLNET::CCallbackNetBase
 Layer 3. More...

class  NLNET::CCallbackServer
 Server class for layer 3. More...

class  NLNET::CClientReceiveTask
 Code of receiving thread for clients. More...

class  NLNET::CDummyTcpSock
 Dummy CTcpSock replacement for replay mode. More...

struct  NLNET::EAccessDenied
 Exception raised when an unauthorized access has been done. More...

struct  NLNET::EServiceNotFound
 Exception raised when a the NS does not find the service looked-up. More...

struct  NLNET::ESocket
 Network exceptions. More...

struct  NLNET::ESocketConnectionClosed
 Exception raised when a connection is gracefully closed by peer. More...

struct  NLNET::ESocketConnectionFailed
 Exception raised when connect() fails. More...

class  NLNET::CInetAddress
 Internet address (IP + port). More...

class  NLNET::CListenSock
 CListenSock: listening socket for servers. More...

class  NLNET::CListenTask
 Code of listening thread. More...

class  NLNET::CLoginClient
class  NLNET::CLoginCookie
 Manage cookie during the authenticate procedure. More...

class  NLNET::CLoginServer
 This class is the server part of the Login System. More...

class  NLNET::CMessage
 Message memory stream for network. More...

class  NLNET::CMessageRecorder
 Message recorder. More...

class  NLNET::CNamingClient
 Client side of Naming Service. More...

class  NLNET::CNetDisplayer
 Net Displayer. More...

class  NLNET::CNetLog
 Logger for network transfers. More...

class  NLNET::CNetManager
 Layer 4. More...

class  NLNET::CPacsClient
 Client side of Pacs Service. More...

struct  NLNET::CPendingUser
class  NLNET::CServerBufSock
 CServerBufSock A socket, its send buffer plus a nonblocking receiving system. More...

class  NLNET::CServerReceiveTask
 Code of receiving threads for servers. More...

class  NLNET::CServerTask
 Common part of CListenTask and CServerReceiveTask. More...

struct  NLNET::CNamingClient::CServiceEntry
class  NLNET::IService
 Base class for all network services. More...

class  NLNET::CSock
 CSock: base socket class. More...

struct  NLNET::TCallbackItem
 Callback items. See CMsgSocket::update() for an explanation on how the callbacks are called. More...

struct  NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection
 The connection structure. More...

class  NLNET::CTcpSock
 CTcpSock: Reliable socket via TCP. More...

struct  NLNET::TMessageRecord
class  NLNET::CUnifiedNetwork::CUnifiedConnection
 This may contains a CCallbackClient or a TSockId, depending on which type of connection it is. More...

struct  NLNET::CUnifiedNetwork::TNameMappedConnection
 A map of service ids, referred by a service name. More...

class  NLNET::CTransportClass
 You have to inherit this class and implement description() and callback() method. More...

struct  NLNET::TUnifiedCallbackItem
 Callback items. See CMsgSocket::update() for an explanation on how the callbacks are called. More...

class  NLNET::CUdpSimSock
 CUdpSimSock: Unreliable datagram socket via UDP but packet lost, lag simulation. More...

class  NLNET::CUdpSock
 CUdpSock: Unreliable datagram socket via UDP. More...

class  NLNET::CUnifiedNetwork
 Layer 5. More...


Typedefs

typedef CBufSockTSockId
 Socket identifier. More...

typedef void(* TNetCallback )(TSockId from, void *arg)
 Callback function for message processing. More...

typedef std::pair< TNetCallback,
+ TSockId
TStoredNetCallback
 Storing a TNetCallback call for future call. More...

typedef NLMISC::CSynchronized<
+ NLMISC::CBufFIFO
CSynchronizedFIFO
 Synchronized FIFO buffer. More...

typedef CSynchronizedFIFO::CAccessor CFifoAccessor
 Accessor of mutexed FIFO buffer. More...

typedef uint32 TBlockSize
 Size of a block. More...

typedef std::vector< NLMISC::IThread * > CThreadPool
typedef std::set< TSockIdCConnections
typedef void(* TMsgCallback )(CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
 Callback function type for message processing. More...

typedef void(* TNewClientCallback )(TSockId from, const CLoginCookie &cookie)
 Callback function type called when a new client is identified (with the login password procedure). More...

typedef void(* TDisconnectClientCallback )(uint32 userId)
 Callback function type called when a client need to be disconnected (double login...). More...

typedef uint8 TServiceId
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. More...

typedef void(* TUnifiedNetCallback )(const std::string &serviceName, uint16 sid, void *arg)
 Callback function type for service up/down processing. More...

typedef void(* TUnifiedMsgCallback )(CMessage &msgin, const std::string &serviceName, uint16 sid)
 Callback function type for message processing. More...


Enumerations

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

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. More...

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. More...

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. More...

std::string internalIPAddressToString (uint32 addr)
 Take an internal address and convert it to a internet dot string. More...

std::string vectorCInetAddressToString (const std::vector< CInetAddress > &addrs)
string EventToString (TNetworkEvent e)
 TNetworkEvent -> string. More...

TNetworkEvent StringToEvent (string &s)
 string -> TNetworkEvent. More...

void cbPacsAnswer (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
uint64 updateStatCounter (uint64 &counter, uint64 newvalue)
NLMISC::CMutex nettrace_mutex ("nettrace_mutex")
string stringFromVectorPart (const vector< uint8 > &v, uint32 pos, uint32 len)
void cbcMessageRecvAllAssociations (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbnbMessageRecvAssociations (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbnbMessageAskAssociations (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbnbNewDisconnection (TSockId from, void *data)
void cbsNewConnection (TSockId from, void *data)
void uuencode (const char *s, const char *store, const int length)
bool sendEMailCommand (CTcpSock &sock, const std::string &command, uint32 code=250)
bool sendEmail (const string &smtpServer, const string &from, const string &to, const string &subject, const string &body, const string &attachedFile, bool onlyCheck)
bool operator== (const CInetAddress &a1, const CInetAddress &a2)
bool operator< (const CInetAddress &a1, const CInetAddress &a2)
void cbShardValidate (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
bool operator== (const CLoginCookie &c1, const CLoginCookie &c2)
void cbWSChooseShard (CMessage &msgin, const std::string &serviceName, uint16 sid)
void cbWSDisconnectClient (CMessage &msgin, const std::string &serviceName, uint16 sid)
void cbShardValidation (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void ClientConnection (TSockId from, void *arg)
void cfcbListenAddress (CConfigFile::CVar &var)
void cfcbAcceptInvalidCookie (CConfigFile::CVar &var)
void cbRegister (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbQueryPort (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbRegisterBroadcast (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbUnregisterBroadcast (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
 NLMISC_COMMAND (services,"displays registered services","")
void nmNewConnection (TSockId from, void *arg)
void nmNewDisconnection (TSockId from, void *arg)
void RegistrationBroadcast (const std::string &name, TServiceId sid, const vector< CInetAddress > &addr)
void UnregistrationBroadcast (const std::string &name, TServiceId sid, const vector< CInetAddress > &addr)
CNetDisplayer commandDisplayer (false)
void serviceGetView (uint32 rid, const string &rawvarpath, vector< string > &vara, vector< string > &vala)
void servcbGetView (CMessage &msgin, const std::string &serviceName, uint16 sid)
void AESConnection (const string &serviceName, uint16 sid, void *arg)
void AESDisconnection (const std::string &serviceName, uint16 sid, void *arg)
void cbExecCommand (CMessage &msgin, const std::string &serviceName, uint16 sid)
void cbStopService (CMessage &msgin, const std::string &serviceName, uint16 sid)
void sigHandler (int Sig)
void initSignal ()
void cbLogFilter (CConfigFile::CVar &var)
 NLMISC_VARIABLE (sint32, NetSpeedLoop,"duration of the last network loop(in ms)")
 NLMISC_VARIABLE (sint32, UserSpeedLoop,"duration of the last user loop(in ms)")
 NLMISC_DYNVARIABLE (uint64, ReceivedBytes,"total of bytes received by this service")
 NLMISC_DYNVARIABLE (uint64, SentBytes,"total of bytes sent by this service")
 NLMISC_DYNVARIABLE (uint64, ReceivedQueueSize,"current size in bytes of the received queue size")
 NLMISC_DYNVARIABLE (uint64, SentQueueSize,"current size in bytes of the sent queue size")
 NLMISC_DYNVARIABLE (string, Scroller,"current size in bytes of the sent queue size")
 NLMISC_VARIABLE (uint32, foo,"test the get view system")
 NLMISC_VARIABLE (uint32, bar,"test the get view system")
 NLMISC_DYNVARIABLE (string, State,"Set this value to 0 to shutdown the service and 1 to start the service")
string typeToString (CTransportClass::TProp type)
void cbTCReceiveMessage (CMessage &msgin, const string &name, uint16 sid)
void cbTCReceiveOtherSideClass (CMessage &msgin, const string &name, uint16 sid)
void cbTCUpService (const std::string &serviceName, uint16 sid, void *arg)
void cbSimVar (CConfigFile::CVar &var)
CLog test (CLog::LOG_INFO)
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 *arg)
void uncbDisconnection (TSockId from, void *arg)
void uncbServiceIdentification (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void uncbMsgProcessing (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
bool createMessage (CMessage &msgout, const vector< string > &args, CLog &log)
 NLMISC_COMMAND (msgin,"Simulate an input message from another service(ex:msgin 128 REGISTER u32 10 b 1 f 1.5)","< ServiceName >|< ServiceId >< MessageName >[< ParamType >< Param >]*")
 NLMISC_COMMAND (msgout,"Send a message to a specified service(ex:msgout 128 REGISTER u32 10 b 1 f 1.5)","< ServiceName >|< ServiceId >< MessageName >[< ParamType >< Param >]*")
 NLMISC_COMMAND (l5InternalTables,"Displays internal table of network layer5","")
 NLMISC_COMMAND (isServiceLocal,"Says if a service is local or not compare with this service","< sid >|< service name >")
void cbGetUniversalTime (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbServerAskUniversalTime (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)
void cbClientGetUniversalTime (CMessage &msgin, TSockId from, CCallbackNetBase &netbase)

Variables

const TSockId InvalidSockId = (TSockId) NULL
CNetLog NetLog
TCallbackItem PacsCallbackArray []
TUnifiedCallbackItem EmptyCallbackArray [] = { { "", NULL } }
TCallbackItem ClientMessageAssociationArray []
TCallbackItem cbnbMessageAssociationArray []
string DefaultSMTPServer
string DefaultFrom
string DefaultTo
char tbl [65]
bool ShardValidate
string ShardValidateReason
TCallbackItem FESCallbackArray []
list< CPendingUserPendingUsers
CCallbackServerServer
string ListenAddr
bool AcceptInvalidCookie = false
TDisconnectClientCallback DisconnectClientCallback = NULL
map< uint32, TSockIdUserIdSockAssociations
 contains the correspondance between userid and the sockid. More...

TNewClientCallback NewClientCallback = NULL
TUnifiedCallbackItem WSCallbackArray []
const TCallbackItem ClientCallbackArray []
TBroadcastCallback _RegistrationBroadcastCallback = NULL
TBroadcastCallback _UnregistrationBroadcastCallback = NULL
bool Registered
TServiceId RegisteredSuccess
TServiceIdRegisteredSID = NULL
bool QueryPort
uint16 QueryPortPort
TCallbackItem NamingClientCallbackArray []
const sint16 LOG_CBINDEX = 0
const sint Signal []
const char * SignalName []
sint ExitSignalAsked = 0
sint32 NetSpeedLoop
sint32 UserSpeedLoop
uint SignalisedThread
CFileDisplayer fd
CLog commandLog
TUnifiedCallbackItem AESCallbackArray []
 bar = 6666
TUnifiedCallbackItem CallbackArray []
queue< CBufferizedOutPacket * > BufferizedOutPackets
queue< CBufferizedOutPacket * > BufferizedInPackets
uint8 buffer [10000]
uint ThreadCreator = 0
const uint64 AppIdDeadConnection = 0xDEAD
string allstuffs
TCallbackItem unServerCbArray []
bool GetUniversalTime
uint32 GetUniversalTimeSecondsSince1970
TTime GetUniversalTimeUniTime
TCallbackItem ServerTimeServiceCallbackArray []
bool GetClientUniversalTime
TTime GetClientUniversalTimeUniTime
+


Detailed Description

+This namespace contains all network class.

Typedef Documentation

+

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

+ +

+Definition at line 374 of file buf_server.h.

+

+ + + + +
+ + +
typedef CSynchronizedFIFO::CAccessor NLNET::CFifoAccessor +
+
+ + + + + +
+   + + +

+Accessor of mutexed FIFO buffer. +

+ +

+Definition at line 56 of file buf_net_base.h. +

+Referenced by NLNET::CBufServer::dataAvailable, NLNET::CBufClient::dataAvailable, NLNET::CBufClient::disconnect, NLNET::CBufNetBase::getReceiveQueueSize, NLNET::CBufNetBase::pushMessageIntoReceiveQueue, NLNET::CBufServer::receive, NLNET::CBufClient::receive, and NLNET::CServerReceiveTask::run.

+

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

+Synchronized FIFO buffer. +

+ +

+Definition at line 53 of file buf_net_base.h. +

+Referenced by NLNET::CBufNetBase::receiveQueue.

+

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

+ +

+Definition at line 112 of file buf_server.h. +

+Referenced by NLNET::CBufServer::addNewThread.

+

+ + + + +
+ + +
typedef uint32 NLNET::TBlockSize +
+
+ + + + + +
+   + + +

+Size of a block. +

+ +

+Definition at line 59 of file buf_net_base.h. +

+Referenced by NLNET::CBufSock::flush, NLNET::CServerBufSock::receivePart, and NLNET::CClientReceiveTask::run.

+

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

+ +

+Definition at line 44 of file naming_client.h. +

+Referenced by NLNET::CNamingClient::setRegistrationBroadcastCallback, and NLNET::CNamingClient::setUnregistrationBroadcastCallback.

+

+ + + + +
+ + +
typedef void(* NLNET::TDisconnectClientCallback)(uint32 userId) +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 50 of file login_server.h. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
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 55 of file callback_net_base.h. +

+Referenced by NLNET::CCallbackNetBase::processOneMessage, and NLNET::CCallbackNetBase::setDefaultCallback.

+

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

+Callback function for message processing. +

+ +

+Definition at line 47 of file buf_net_base.h. +

+Referenced by NLNET::CBufServer::connectionCallback, NLNET::CBufNetBase::disconnectionCallback, NLNET::CCallbackServer::setConnectionCallback, NLNET::CBufServer::setConnectionCallback, NLNET::CCallbackServer::setDisconnectionCallback, NLNET::CCallbackNetBase::setDisconnectionCallback, NLNET::CCallbackClient::setDisconnectionCallback, and NLNET::CBufNetBase::setDisconnectionCallback.

+

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

+Callback function type for message processing. +

+ +

+Definition at line 52 of file net_manager.h. +

+Referenced by NLNET::CNetManager::setConnectionCallback, and NLNET::CNetManager::setDisconnectionCallback.

+

+ + + + +
+ + +
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 47 of file login_server.h. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
typedef uint8 NLNET::TServiceId +
+
+ + + + + +
+   + + +

+ +

+Definition at line 42 of file naming_client.h. +

+Referenced by NLNET::CNetManager::addServer, NLNET::CNamingClient::CServiceEntry::CServiceEntry, NLNET::CNamingClient::find, NLNET::IService::getServiceId, NLNET::CNamingClient::lookup, NLNET::CNamingClient::registerService, NLNET::CNamingClient::registerServiceWithSId, NLNET::CNamingClient::resendRegisteration, NLNET::CNamingClient::unregisterAllServices, and NLNET::CNamingClient::unregisterService.

+

+ + + + +
+ + +
typedef CBufSock* NLNET::TSockId +
+
+ + + + + +
+   + + +

+Socket identifier. +

+ +

+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::CCallbackNetBase::authorizeOnly, NLNET::CClientReceiveTask::CClientReceiveTask, NLNET::CServerReceiveTask::clearClosedConnections, NLNET::CBufServer::dataAvailable, NLNET::CCallbackServer::disconnect, NLNET::CCallbackNetBase::disconnect, NLNET::CCallbackClient::disconnect, NLNET::CBufServer::disconnect, NLNET::CCallbackServer::flush, NLNET::CCallbackClient::flush, NLNET::CBufServer::flush, NLNET::CUnifiedNetwork::getNetBase, NLNET::CBufServer::getSendQueueSize, NLNET::CCallbackServer::getSockId, NLNET::CCallbackClient::getSockId, NLNET::CCallbackServer::hostAddress, NLNET::CCallbackNetBase::hostAddress, NLNET::CCallbackClient::hostAddress, NLNET::CBufServer::hostAddress, NLNET::CBufClient::id, NLNET::CCallbackNetBase::processOneMessage, NLNET::CBufServer::pushBufferToHost, NLNET::CCallbackServer::receive, NLNET::CCallbackClient::receive, NLNET::CBufServer::receive, NLNET::CMessageRecorder::recordNext, NLNET::CServerReceiveTask::run, NLNET::CNetManager::send, NLNET::CCallbackServer::send, NLNET::CCallbackClient::send, NLNET::CCallbackServer::sendAllMyAssociations, NLNET::CBufServer::setSizeFlushTrigger, NLNET::CBufServer::setTimeFlushTrigger, NLNET::CClientReceiveTask::sockId, NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::TConnection, and NLNET::TMessageRecord::TMessageRecord.

+

+ + + + +
+ + +
typedef std::pair<TNetCallback,TSockId> NLNET::TStoredNetCallback +
+
+ + + + + +
+   + + +

+Storing a TNetCallback call for future call. +

+ +

+Definition at line 50 of file buf_net_base.h.

+

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

+Callback function type for message processing. +

+

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

+Definition at line 52 of file unified_network.h. +

+Referenced by NLNET::CUnifiedNetwork::findCallback.

+

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

+Callback function type for service up/down processing. +

+

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

+Definition at line 45 of file unified_network.h. +

+Referenced by NLNET::CUnifiedNetwork::update.

+


Enumeration Type Documentation

+

+ + + + +
+ + +
enum NLNET::TNetworkEvent +
+
+ + + + + +
+   + + +

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

+

+Enumeration values:
+ + + + + + + + +
Sending  +
Receiving  +
Connecting  +
ConnFailing  +
Accepting  +
Disconnecting  +
Error  +
+
+ +

+Definition at line 49 of file message_recorder.h. +

+Referenced by NLNET::CMessageRecorder::checkNextOne, NLNET::CCallbackClient::connect, NLNET::CMessageRecorder::recordNext, NLNET::CMessageRecorder::replayConnectionAttempt, and NLNET::TMessageRecord::TMessageRecord.

+


Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void AESConnection const string &   serviceName,
uint16   sid,
void *   arg
+
+ + + + + +
+   + + +

+ +

+Definition at line 209 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void AESDisconnection const std::string &   serviceName,
uint16   sid,
void *   arg
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 237 of file service.cpp. +

+Referenced by NLNET::IService::main.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbClientGetUniversalTime CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 295 of file unitime.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbcMessageRecvAllAssociations CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 43 of file callback_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbExecCommand CMessage  msgin,
const std::string &   serviceName,
uint16   sid
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 243 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbGetUniversalTime CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 138 of file unitime.cpp.

+

+ + + + +
+ + + + + + + + + + +
void cbLogFilter CConfigFile::CVar &   var
+
+ + + + + +
+   + + +

+ +

+Definition at line 430 of file service.cpp. +

+Referenced by NLNET::IService::main.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbnbMessageAskAssociations CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 88 of file callback_net_base.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbnbMessageRecvAssociations CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file callback_net_base.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void cbnbNewDisconnection TSockId   from,
void *   data
+
+ + + + + +
+   + + +

+ +

+Definition at line 127 of file callback_net_base.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbPacsAnswer CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 495 of file pacs_client.h.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbQueryPort CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 104 of file naming_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbRegister CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 84 of file naming_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbRegisterBroadcast CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 114 of file naming_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbServerAskUniversalTime CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 261 of file unitime.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbShardValidate CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file login_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbShardValidation CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 143 of file login_server.cpp.

+

+ + + + +
+ + + + + + + + + + +
void cbSimVar CConfigFile::CVar &   var
+
+ + + + + +
+   + + +

+ +

+Definition at line 191 of file udp_sim_sock.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void cbsNewConnection TSockId   from,
void *   data
+
+ + + + + +
+   + + +

+ +

+Definition at line 45 of file callback_server.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbStopService CMessage  msgin,
const std::string &   serviceName,
uint16   sid
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 254 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbTCReceiveMessage CMessage  msgin,
const string &   name,
uint16   sid
+
+ + + + + +
+   + + +

+ +

+Definition at line 253 of file transport_class.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbTCReceiveOtherSideClass CMessage  msgin,
const string &   name,
uint16   sid
+
+ + + + + +
+   + + +

+ +

+Definition at line 273 of file transport_class.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbTCUpService const std::string &   serviceName,
uint16   sid,
void *   arg
+
+ + + + + +
+   + + +

+ +

+Definition at line 316 of file transport_class.cpp. +

+Referenced by NLNET::CTransportClass::init.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbUnregisterBroadcast CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 173 of file naming_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbWSChooseShard CMessage  msgin,
const std::string &   serviceName,
uint16   sid
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file login_server.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void cbWSDisconnectClient CMessage  msgin,
const std::string &   serviceName,
uint16   sid
+
+ + + + + +
+   + + +

+ +

+Definition at line 107 of file login_server.cpp.

+

+ + + + +
+ + + + + + + + + + +
void cfcbAcceptInvalidCookie CConfigFile::CVar &   var
+
+ + + + + +
+   + + +

+ +

+Definition at line 217 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + + + + + + + + + +
void cfcbListenAddress CConfigFile::CVar &   var
+
+ + + + + +
+   + + +

+ +

+Definition at line 203 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void ClientConnection TSockId   from,
void *   arg
+
+ + + + + +
+   + + +

+ +

+Definition at line 189 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + + + + + + + + + +
CNetDisplayer commandDisplayer false   [static]
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
bool createMessage CMessage  msgout,
const vector< string > &   args,
CLog &   log
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1691 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + +
string NLNET::EventToString TNetworkEvent   e
+
+ + + + + +
+   + + +

+TNetworkEvent -> string. +

+ +

+Definition at line 39 of file message_recorder.cpp. +

+Referenced by NLNET::CMessageRecorder::checkNextOne, and NLNET::TMessageRecord::serial.

+

+ + + + +
+ + + + + + + + + +
void initSignal   [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 322 of file service.cpp. +

+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 520 of file inet_address.cpp. +

+Referenced by NLNET::CUnifiedNetwork::displayInternalTables.

+

+ + + + +
+ + + + + + + + + + +
NLMISC::CMutex nettrace_mutex "nettrace_mutex"  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_COMMAND isServiceLocal  ,
"Says if a service is local or not compare with this service"  ,
"< sid >|< service name >"  
+
+ + + + + +
+   + + +

+ +

+Definition at line 1855 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_COMMAND l5InternalTables  ,
"Displays internal table of network layer5"  ,
""  
+
+ + + + + +
+   + + +

+ +

+Definition at line 1840 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_COMMAND msgout  ,
"Send a message to a specified service(ex:msgout 128 REGISTER u32 10 b 1 f 1.5)"  ,
"< ServiceName >|< ServiceId >< MessageName > *"  [< ParamType >< Param >]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1790 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_COMMAND msgin  ,
"Simulate an input message from another service(ex:msgin 128 REGISTER u32 10 b 1 f 1.5)"  ,
"< ServiceName >|< ServiceId >< MessageName > *"  [< ParamType >< Param >]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1728 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_COMMAND services  ,
"displays registered services"  ,
""  
+
+ + + + + +
+   + + +

+ +

+Definition at line 549 of file naming_client.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_DYNVARIABLE string  ,
State  ,
"Set this value to 0 to shutdown the service and 1 to start the service"  
+
+ + + + + +
+   + + +

+ +

+Definition at line 1522 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_DYNVARIABLE string  ,
Scroller  ,
"current size in bytes of the sent queue size 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1370 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_DYNVARIABLE uint64  ,
SentQueueSize  ,
"current size in bytes of the sent queue size 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1363 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_DYNVARIABLE uint64  ,
ReceivedQueueSize  ,
"current size in bytes of the received queue size 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1356 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_DYNVARIABLE uint64  ,
SentBytes  ,
"total of bytes sent by this service"  
+
+ + + + + +
+   + + +

+ +

+Definition at line 1349 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_DYNVARIABLE uint64  ,
ReceivedBytes  ,
"total of bytes received by this service"  
+
+ + + + + +
+   + + +

+ +

+Definition at line 1342 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_VARIABLE uint32  ,
bar  ,
"test the get view system"  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_VARIABLE uint32  ,
foo  ,
"test the get view system"  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_VARIABLE sint32  ,
UserSpeedLoop  ,
"duration of the last user loop(in ms)"  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NLMISC_VARIABLE sint32  ,
NetSpeedLoop  ,
"duration of the last network loop(in ms)"  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void nmNewConnection TSockId   from,
void *   arg
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 62 of file net_manager.cpp. +

+Referenced by NLNET::CNetManager::addServer.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void nmNewDisconnection TSockId   from,
void *   arg
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file net_manager.cpp. +

+Referenced by NLNET::CNetManager::addClient, and NLNET::CNetManager::addServer.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool operator< const CInetAddress  a1,
const CInetAddress  a2
+
+ + + + + +
+   + + +

+ +

+Definition at line 153 of file inet_address.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool operator== const CLoginCookie  c1,
const CLoginCookie  c2
+
+ + + + + +
+   + + +

+ +

+Definition at line 40 of file login_cookie.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool operator== const CInetAddress  a1,
const CInetAddress  a2
+
+ + + + + +
+   + + +

+ +

+Definition at line 143 of file inet_address.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void RegistrationBroadcast const std::string &   name,
TServiceId   sid,
const vector< CInetAddress > &   addr
+
+ + + + + +
+   + + +

+ +

+Definition at line 131 of file net_manager.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool sendEmail const string &   smtpServer,
const string &   from,
const string &   to,
const string &   subject,
const string &   body,
const string &   attachedFile,
bool   onlyCheck
+
+ + + + + +
+   + + +

+ +

+Definition at line 128 of file email.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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. +

+

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

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
bool sendEMailCommand CTcpSock  sock,
const std::string &   command,
uint32   code = 250
+
+ + + + + +
+   + + +

+ +

+Definition at line 86 of file email.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void servcbGetView CMessage  msgin,
const std::string &   serviceName,
uint16   sid
+
+ + + + + +
+   + + +

+ +

+Definition at line 186 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void serviceGetView uint32   rid,
const string &   rawvarpath,
vector< string > &   vara,
vector< string > &   vala
+
+ + + + + +
+   + + +

+ +

+Definition at line 125 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
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 310 of file email.cpp. +

+Referenced by NLNET::IService::main.

+

+ + + + +
+ + + + + + + + + + +
void sigHandler int   Sig [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 275 of file service.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
string stringFromVectorPart const vector< uint8 > &   v,
uint32   pos,
uint32   len
+
+ + + + + +
+   + + +

+ +

+Definition at line 106 of file buf_sock.cpp.

+

+ + + + +
+ + + + + + + + + + +
TNetworkEvent NLNET::StringToEvent string &   s
+
+ + + + + +
+   + + +

+string -> TNetworkEvent. +

+ +

+Definition at line 54 of file message_recorder.cpp. +

+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 515 of file inet_address.cpp.

+

+ + + + +
+ + + + + + + + + + +
CLog test CLog::LOG_INFO  
+
+ + + + + +
+   + + +

+ +

+Referenced by NLNET::CUnifiedNetwork::addNamedCnx, and NLNET::CUnifiedNetwork::removeNamedCnx.

+

+ + + + +
+ + + + + + + + + + +
string typeToString CTransportClass::TProp   type
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file transport_class.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void uncbConnection TSockId   from,
void *   arg
+
+ + + + + +
+   + + +

+ +

+Definition at line 164 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void uncbDisconnection TSockId   from,
void *   arg
+
+ + + + + +
+   + + +

+ +

+Definition at line 171 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void uncbMsgProcessing CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 390 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void uncbServiceIdentification CMessage  msgin,
TSockId   from,
CCallbackNetBase  netbase
+
+ + + + + +
+   + + +

+ +

+Definition at line 274 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void uNetRegistrationBroadcast const string &   name,
TServiceId   sid,
const vector< CInetAddress > &   addr
+
+ + + + + +
+   + + +

+ +

+Definition at line 54 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void uNetUnregistrationBroadcast const string &   name,
TServiceId   sid,
const vector< CInetAddress > &   addr
+
+ + + + + +
+   + + +

+ +

+Definition at line 96 of file unified_network.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void UnregistrationBroadcast const std::string &   name,
TServiceId   sid,
const vector< CInetAddress > &   addr
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 164 of file net_manager.cpp. +

+Referenced by NLNET::CNetManager::init.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
uint64 updateStatCounter uint64  counter,
uint64   newvalue
[inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 340 of file buf_client.cpp. +

+Referenced by NLNET::CBufClient::newBytesDownloaded, and NLNET::CBufClient::newBytesUploaded.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void uuencode const char *   s,
const char *   store,
const int   length
[static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 61 of file email.cpp.

+

+ + + + +
+ + + + + + + + + + +
std::string NLNET::vectorCInetAddressToString const std::vector< CInetAddress > &   addrs
+
+ + + + + +
+   + + +

+ +

+Definition at line 502 of file inet_address.cpp.

+


Variable Documentation

+

+ + + + +
+ + +
TBroadcastCallback NLNET::_RegistrationBroadcastCallback = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::setRegistrationBroadcastCallback.

+

+ + + + +
+ + +
TBroadcastCallback NLNET::_UnregistrationBroadcastCallback = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 56 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::setUnregistrationBroadcastCallback.

+

+ + + + +
+ + +
bool NLNET::AcceptInvalidCookie = false [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file login_server.cpp.

+

+ + + + +
+ + +
TUnifiedCallbackItem NLNET::AESCallbackArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "STOPS", cbStopService },
+        { "EXEC_COMMAND", cbExecCommand },
+        { "GET_VIEW", servcbGetView },
+}
+

+Definition at line 263 of file service.cpp. +

+Referenced by NLNET::IService::main.

+

+ + + + +
+ + +
string NLNET::allstuffs [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 47 of file unified_network.cpp. +

+Referenced by NLNET::CUnifiedNetwork::addNamedCnx, and NLNET::CUnifiedNetwork::removeNamedCnx.

+

+ + + + +
+ + +
const uint64 NLNET::AppIdDeadConnection = 0xDEAD [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 41 of file unified_network.cpp.

+

+ + + + +
+ + +
NLNET::bar = 6666 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 1510 of file service.cpp.

+

+ + + + +
+ + +
uint8 NLNET::buffer[10000] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 236 of file udp_sim_sock.cpp. +

+Referenced by NLNET::CUdpSimSock::dataAvailable, NLNET::CUdpSimSock::receive, NLNET::CUdpSimSock::send, NLNET::CUdpSimSock::sendTo, NLNET::CUdpSimSock::sendUDP, and NLNET::CUdpSimSock::sendUDPNow.

+

+ + + + +
+ + +
queue<CBufferizedOutPacket*> NLNET::BufferizedInPackets [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 93 of file udp_sim_sock.cpp. +

+Referenced by NLNET::CUdpSimSock::dataAvailable, and NLNET::CUdpSimSock::receive.

+

+ + + + +
+ + +
queue<CBufferizedOutPacket*> NLNET::BufferizedOutPackets [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 92 of file udp_sim_sock.cpp. +

+Referenced by NLNET::CUdpSimSock::sendUDP, and NLNET::CUdpSimSock::updateBufferizedPackets.

+

+ + + + +
+ + +
TUnifiedCallbackItem NLNET::CallbackArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "CT_LRC", cbTCReceiveOtherSideClass },
+        { "CT_MSG", cbTCReceiveMessage },
+}
+

+Definition at line 310 of file transport_class.cpp. +

+Referenced by NLNET::CTransportClass::init.

+

+ + + + +
+ + +
TCallbackItem NLNET::cbnbMessageAssociationArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+

+Definition at line 117 of file callback_net_base.cpp.

+

+ + + + +
+ + +
const TCallbackItem NLNET::ClientCallbackArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "SV", cbShardValidation },
+}
+

+Definition at line 198 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
TCallbackItem NLNET::ClientMessageAssociationArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "RAA", cbcMessageRecvAllAssociations },
+}
+

+Definition at line 50 of file callback_client.cpp. +

+Referenced by NLNET::CCallbackClient::CCallbackClient.

+

+ + + + +
+ + +
CLog NLNET::commandLog [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 118 of file service.cpp.

+

+ + + + +
+ + +
string NLNET::DefaultFrom [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 40 of file email.cpp.

+

+ + + + +
+ + +
string NLNET::DefaultSMTPServer [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 40 of file email.cpp.

+

+ + + + +
+ + +
string NLNET::DefaultTo [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 40 of file email.cpp.

+

+ + + + +
+ + +
TDisconnectClientCallback NLNET::DisconnectClientCallback = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
TUnifiedCallbackItem NLNET::EmptyCallbackArray[] = { { "", NULL } } [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 145 of file service.h.

+

+ + + + +
+ + +
sint NLNET::ExitSignalAsked = 0 [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 107 of file service.cpp. +

+Referenced by NLNET::IService::exit, and NLNET::IService::main.

+

+ + + + +
+ + +
CFileDisplayer NLNET::fd [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 37 of file unified_network.cpp.

+

+ + + + +
+ + +
TCallbackItem NLNET::FESCallbackArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "SV", cbShardValidate },
+}
+

+Definition at line 58 of file login_client.cpp. +

+Referenced by NLNET::CLoginClient::connectToShard.

+

+ + + + +
+ + +
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 133 of file unitime.cpp.

+

+ + + + +
+ + +
uint32 NLNET::GetUniversalTimeSecondsSince1970 [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 134 of file unitime.cpp.

+

+ + + + +
+ + +
TTime NLNET::GetUniversalTimeUniTime [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 135 of file unitime.cpp.

+

+ + + + +
+ + +
const TSockId NLNET::InvalidSockId = (TSockId) NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 44 of file buf_net_base.h.

+

+ + + + +
+ + +
string NLNET::ListenAddr [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 51 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
const sint16 NLNET::LOG_CBINDEX = 0 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 42 of file net_displayer.cpp.

+

+ + + + +
+ + +
TCallbackItem NLNET::NamingClientCallbackArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "RG", cbRegister },
+        { "QP", cbQueryPort },
+
+        { "RGB", cbRegisterBroadcast },
+        { "UNB", cbUnregisterBroadcast },
+}
+

+Definition at line 224 of file naming_client.cpp.

+

+ + + + +
+ + +
subsection network_transfers Analysing network transfers NLNET::NetLog +
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + +
sint32 NLNET::NetSpeedLoop [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 110 of file service.cpp. +

+Referenced by NLNET::IService::main.

+

+ + + + +
+ + +
TNewClientCallback NLNET::NewClientCallback = NULL +
+
+ + + + + +
+   + + +

+ +

+Definition at line 60 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
TCallbackItem NLNET::PacsCallbackArray +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "PACS_ASW", cbPacsAnswer }
+}
+

+Definition at line 572 of file pacs_client.h. +

+Referenced by NLNET::CPacsClient::connect.

+

+ + + + +
+ + +
list<CPendingUser> NLNET::PendingUsers [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file login_server.cpp.

+

+ + + + +
+ + +
bool NLNET::QueryPort [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 101 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::queryServicePort.

+

+ + + + +
+ + +
uint16 NLNET::QueryPortPort [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 102 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::queryServicePort.

+

+ + + + +
+ + +
bool NLNET::Registered [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 80 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::registerService, and NLNET::CNamingClient::registerServiceWithSId.

+

+ + + + +
+ + +
TServiceId* NLNET::RegisteredSID = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 82 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::registerService, and NLNET::CNamingClient::registerServiceWithSId.

+

+ + + + +
+ + +
TServiceId NLNET::RegisteredSuccess [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 81 of file naming_client.cpp. +

+Referenced by NLNET::CNamingClient::registerService, and NLNET::CNamingClient::registerServiceWithSId.

+

+ + + + +
+ + +
CCallbackServer* NLNET::Server [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 50 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::init.

+

+ + + + +
+ + +
TCallbackItem NLNET::ServerTimeServiceCallbackArray[] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "AUT", cbServerAskUniversalTime },
+}
+

+Definition at line 274 of file unitime.cpp. +

+Referenced by NLNET::_CUniTime::installServer.

+

+ + + + +
+ + +
bool NLNET::ShardValidate +
+
+ + + + + +
+   + + +

+ +

+Definition at line 46 of file login_client.cpp. +

+Referenced by NLNET::CLoginClient::connectToShard.

+

+ + + + +
+ + +
string NLNET::ShardValidateReason +
+
+ + + + + +
+   + + +

+ +

+Definition at line 47 of file login_client.cpp. +

+Referenced by NLNET::CLoginClient::connectToShard.

+

+ + + + +
+ + +
const sint NLNET::Signal[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

 {
+  SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM
+}
+

+Definition at line 89 of file service.cpp.

+

+ + + + +
+ + +
uint NLNET::SignalisedThread [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 114 of file service.cpp.

+

+ + + + +
+ + +
const char* NLNET::SignalName[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+  "SIGABRT", "SIGFPE", "SIGILL", "SIGINT", "SIGSEGV", "SIGTERM"
+}
+

+Definition at line 93 of file service.cpp.

+

+ + + + +
+ + +
char NLNET::tbl[65] [static] +
+
+ + + + + +
+   + + +

+Initial value:

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

+Definition at line 43 of file email.cpp.

+

+ + + + +
+ + +
uint NLNET::ThreadCreator = 0 [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 39 of file unified_network.cpp. +

+Referenced by NLNET::CUnifiedNetwork::connect, NLNET::CUnifiedNetwork::getNetBase, NLNET::CUnifiedNetwork::release, NLNET::CUnifiedNetwork::send, and NLNET::CUnifiedNetwork::update.

+

+ + + + +
+ + +
TCallbackItem NLNET::unServerCbArray[] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "UN_SIDENT", uncbServiceIdentification }
+}
+

+Definition at line 427 of file unified_network.cpp.

+

+ + + + +
+ + +
map<uint32, TSockId> NLNET::UserIdSockAssociations +
+
+ + + + + +
+   + + +

+contains the correspondance between userid and the sockid. +

+ +

+Definition at line 58 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::clientDisconnected.

+

+ + + + +
+ + +
sint32 NLNET::UserSpeedLoop [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 110 of file service.cpp. +

+Referenced by NLNET::IService::main.

+

+ + + + +
+ + +
TUnifiedCallbackItem NLNET::WSCallbackArray[] [static] +
+
+ + + + + +
+   + + +

+Initial value:

+{
+        { "CS", cbWSChooseShard },
+        { "DC", cbWSDisconnectClient },
+}
+

+Definition at line 131 of file login_server.cpp. +

+Referenced by NLNET::CLoginServer::connectToWS.

+ + + +
                                                                                                                                                                    +

+ + -- cgit v1.2.1