|
|
|
|
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 ReferenceThis 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] |
|
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] |
|
The documentation for this class was generated from the following files:
|
|