# 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::CLoginServer Class Reference

This class is the server part of the Login System. More...

#include <login_server.h>

List of all members.

Static Public Methods

void init (CCallbackServer &server, TNewClientCallback ncl)
 Create the connection to the Welcome Service and install callbacks to the callback server (for a TCP cnx) init() will try to find the ListenAddress in the config file and it will be used to say to the client the address to connect to this frontend (using the login system). You can modify this in real time in the config file or with the ls_listen_address command The ListenAddress must be in the form of "itsalive.nevrax.org:38000" (ip+port). More...

void init (CUdpSock &server, TDisconnectClientCallback dc)
 Create the connection to the Welcome Service for an UDP connection the dc will be call when the Welcome Service decides to disconnect a player (double login...). More...

std::string CLoginServer::isValidCookie (const CLoginCookie &lc)
 Used only in UDP, check if the cookie is valid. return empty string if valid, reason otherwise. More...

void clientDisconnected (uint32 userId)
 Call this method when a user is disconnected or the server disconnect the user. This method will warn the login system that the user is not here anymore. More...


Static Private Methods

void connectToWS ()
 This function is used by init() to create the connection to the Welcome Service. More...


Detailed Description

This class is the server part of the Login System.

It is used in the Front End Service. At the begining, it connects to the WS. When a new player comes in and is authenticated, a callback is called to warn the user code that a new player is here. Example:

Author:
Vianney Lecroart , Nevrax France
Date:
2001

Definition at line 65 of file login_server.h.


Member Function Documentation

void NLNET::CLoginServer::clientDisconnected uint32    userId [static]
 

Call this method when a user is disconnected or the server disconnect the user. This method will warn the login system that the user is not here anymore.

Definition at line 373 of file login_server.cpp.

References uint32, uint8, and NLNET::UserIdSockAssociations.

std::string NLNET::CLoginServer::CLoginServer::isValidCookie const CLoginCookie   lc [static]
 

Used only in UDP, check if the cookie is valid. return empty string if valid, reason otherwise.

void NLNET::CLoginServer::connectToWS   [static, private]
 

This function is used by init() to create the connection to the Welcome Service.

Definition at line 352 of file login_server.cpp.

References nlassert, uint16, NLNET::WSCallbackArray, and NLNET::WSCallbackArray5.

Referenced by init.

void NLNET::CLoginServer::init CUdpSock   server,
TDisconnectClientCallback    dc
[static]
 

Create the connection to the Welcome Service for an UDP connection the dc will be call when the Welcome Service decides to disconnect a player (double login...).

Definition at line 294 of file login_server.cpp.

References NLNET::cfcbListenAddress, connectToWS, NLNET::DisconnectClientCallback, NLNET::ListenAddr, nlinfo, and NLNET::TDisconnectClientCallback.

void NLNET::CLoginServer::init CCallbackServer   server,
TNewClientCallback    ncl
[static]
 

Create the connection to the Welcome Service and install callbacks to the callback server (for a TCP cnx) init() will try to find the ListenAddress in the config file and it will be used to say to the client the address to connect to this frontend (using the login system). You can modify this in real time in the config file or with the ls_listen_address command The ListenAddress must be in the form of "itsalive.nevrax.org:38000" (ip+port).

Definition at line 264 of file login_server.cpp.

References NLNET::cfcbListenAddress, NLNET::ClientCallbackArray, NLNET::ClientConnection, connectToWS, NLNET::ListenAddr, NLNET::NewClientCallback, nlinfo, NLNET::Server, and NLNET::TNewClientCallback.


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