|
void | init (const std::string &sid) |
|
std::string | GetUID () |
|
|
static std::string | GenerateSID (const std::string &servername, const std::string &serverdesc) |
|
◆ GenerateSID()
std::string UIDGenerator::GenerateSID |
( |
const std::string & |
servername, |
|
|
const std::string & |
serverdesc |
|
) |
| |
|
static |
Generates a pseudorandom SID based on a servername and a description Guaranteed to return the same if invoked with the same parameters
- Parameters
-
servername | The server name to use as seed |
serverdesc | The server description to use as seed |
- Returns
- A valid SID
◆ GetUID()
std::string UIDGenerator::GetUID |
( |
| ) |
|
Returns the next available UID for this server.
◆ init()
void UIDGenerator::init |
( |
const std::string & |
sid | ) |
|
Initializes this UID generator with the given SID
- Parameters
-
◆ UUID_LENGTH
const unsigned int UIDGenerator::UUID_LENGTH = 9 |
|
static |
This is the maximum length of a UUID (unique user identifier). This length is set in compliance with TS6 protocol, and really should not be changed. Ever. It allows for a lot of clients as-is. – w00t.
The documentation for this class was generated from the following files:
- include/uid.h
- src/server.cpp