The base class for the lobby server, without database specific functionality.
More...
|
virtual bool | ConnectToDB (const char *conninfo, int numWorkerThreads)=0 |
| Connect to the database numWorkerThreads times using the connection string.
|
|
void | SendMsg (Lobby2Message *msg, const DataStructures::List< SystemAddress > &recipients) |
| Lobby2Message encapsulates a user command, containing both input and output data.
|
|
void | ExecuteCommand (Lobby2ServerCommand *command) |
| Add a command, which contains a message and other data such as who send the message.
|
|
void | AddAdminAddress (SystemAddress addr) |
| If Lobby2Message::RequiresAdmin() returns true, the message can only be processed from a remote system if the sender's system address is first added()
|
|
bool | HasAdminAddress (const DataStructures::List< SystemAddress > &addresses) |
| If AddAdminAddress() was previously called with addr then this returns true.
|
|
void | RemoveAdminAddress (SystemAddress addr) |
| Removes a system address previously added with AddAdminAddress()
|
|
void | ClearAdminAddresses (void) |
| Removes all system addresses previously added with AddAdminAddress()
|
|
void | AddRankingAddress (SystemAddress addr) |
| If Lobby2Message::RequiresRankingPermission() returns true, then the system that sent the command must be registered with AddRankingAddress()
|
|
bool | HasRankingAddress (const DataStructures::List< SystemAddress > &addresses) |
|
void | RemoveRankingAddress (SystemAddress addr) |
|
void | ClearRankingAddresses (void) |
| Clears all addresses added with AddRankingAddress()
|
|
void | SetRoomsPlugin (RoomsPlugin *rp) |
| To use RoomsPlugin and Lobby2Server together, register RoomsPlugin with this funcrtion.
|
|
void | SetRoomsPluginAddress (SystemAddress address) |
| This is similar to SetRoomsPlugin(), except the plugin is on another system.
|
|
void | SetConfigurationProperties (ConfigurationProperties c) |
| Set the desired configuration properties. This is read during runtime from threads.
|
|
const ConfigurationProperties * | GetConfigurationProperties (void) const |
| Get the previously set configuration properties.
|
|
void | SetPresence (const RakNet::Lobby2Presence &presence, RakNet::RakString userHandle) |
|
void | GetPresence (RakNet::Lobby2Presence &presence, RakNet::RakString userHandle) |
|
void | SetOrderingChannel (char oc) |
| Ordering channel to send messages on.
|
|
void | SetSendPriority (PacketPriority pp) |
| Send priority to send messages on.
|
|
void | SetMessageFactory (Lobby2MessageFactory *f) |
| Creates messages from message IDs.
|
|
Lobby2MessageFactory * | GetMessageFactory (void) const |
| Returns whatever was passed to SetMessageFactory()
|
|
virtual void | SetCallbackInterface (Lobby2Callbacks *cb) |
| Set the callback to receive the results of operations via SendMsg()
|
|
virtual void | AddCallbackInterface (Lobby2Callbacks *cb) |
| You can have more than one callback to get called from the results of operations via SendMsg()
|
|
virtual void | RemoveCallbackInterface (Lobby2Callbacks *cb) |
| Removes a callback added with AddCallbackInterface();.
|
|
virtual void | ClearCallbackInterfaces () |
| Removes all callbacks added with AddCallbackInterface();.
|
|
virtual void | OnAttach (void) |
| Called when the interface is attached.
|
|
virtual void | OnDetach (void) |
| Called when the interface is detached.
|
|
virtual void | OnRakPeerStartup (void) |
| Called when RakPeer is initialized.
|
|
virtual void | OnRakPeerShutdown (void) |
| Called when RakPeer is shutdown.
|
|
virtual void | OnNewConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, bool isIncoming) |
|
virtual void | OnFailedConnectionAttempt (Packet *packet, PI2_FailedConnectionAttemptReason failedConnectionAttemptReason) |
|
virtual bool | UsesReliabilityLayer (void) const |
|
virtual void | OnDirectSocketSend (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
virtual void | OnDirectSocketReceive (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
virtual void | OnReliabilityLayerNotification (const char *errorMessage, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress, bool isError) |
|
virtual void | OnInternalPacket (InternalPacket *internalPacket, unsigned frameNumber, SystemAddress remoteSystemAddress, RakNet::TimeMS time, int isSend) |
|
virtual void | OnAck (unsigned int messageNumber, SystemAddress remoteSystemAddress, RakNet::TimeMS time) |
|
virtual void | OnPushBackPacket (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
The base class for the lobby server, without database specific functionality.
This is a plugin which will take incoming messages via Lobby2Client_PC::SendMsg(), process them, and send back the same messages with output and a result code Unlike the first implementation of the lobby server, this is a thin plugin that mostly just sends messages to threads and sends back the results.