|
RakNet
4.0
|
PostgreSQL specific functionality to the lobby server. More...
#include <Lobby2Server_PGSQL.h>
Public Member Functions | |
| virtual bool | ConnectToDB (const char *conninfo, int numWorkerThreads) |
| virtual void | AddInputFromThread (Lobby2Message *msg, unsigned int targetUserId, RakNet::RakString targetUserHandle) |
| Add input to the worker threads, from a thread already running. | |
| virtual void | AddOutputFromThread (Lobby2Message *msg, unsigned int targetUserId, RakNet::RakString targetUserHandle) |
| Add output from the worker threads, from a thread already running. This is in addition to the current message, so is used for notifications. | |
Public Member Functions inherited from RakNet::Lobby2Server | |
| 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) |
Public Member Functions inherited from RakNet::Lobby2Plugin | |
| 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();. | |
Public Member Functions inherited from RakNet::PluginInterface2 | |
| 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) |
Additional Inherited Members | |
Protected Member Functions inherited from RakNet::Lobby2Server | |
| void | Update (void) |
| Update is called every time a packet is checked for . | |
| PluginReceiveResult | OnReceive (Packet *packet) |
| void | OnClosedConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason) |
PostgreSQL specific functionality to the lobby server.
|
virtual |
ConnectTo to the database numWorkerThreads times using the connection string
| [in] | conninfo | See the postgre docs |
Implements RakNet::Lobby2Server.
1.8.2