tokendispenser.hpp File Reference

#include <string>

Go to the source code of this file.

Namespaces

namespace  utils

Defines

#define MAGIC_TOKEN_LENGTH   32

Functions

std::string getMagicToken ()
 Returns a magic_token.


Define Documentation

#define MAGIC_TOKEN_LENGTH   32
 

Definition at line 26 of file tokendispenser.hpp.


Function Documentation

std::string utils::getMagicToken  ) 
 

Returns a magic_token.

The tokens are used for spanning a user's session across multiple servers. NOTE: Uniqueness is not guaranteed, store the account- or characterId with the token if that is an issue. NOTE: Not passed-by-reference by design. NOTE: Store the token in a variable in this namespace if you want to avoid 1 copy operation per use.

Definition at line 27 of file tokendispenser.cpp.


Generated on Fri Mar 30 15:39:17 2007 for TMW Server by  doxygen 1.3.9.1