RakNet  4.0
Public Member Functions | List of all members
RakNet::Lobby2Plugin Class Reference

Both Lobby2Server and Lobby2Client derive from this class. More...

#include <Lobby2Plugin.h>

Inheritance diagram for RakNet::Lobby2Plugin:
RakNet::PluginInterface2 RakNet::Lobby2Client RakNet::Lobby2Server RakNet::Lobby2Server_PGSQL

Public Member Functions

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 Update (void)
 Update is called every time a packet is checked for .
 
virtual PluginReceiveResult OnReceive (Packet *packet)
 
virtual void OnRakPeerStartup (void)
 Called when RakPeer is initialized.
 
virtual void OnRakPeerShutdown (void)
 Called when RakPeer is shutdown.
 
virtual void OnClosedConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason)
 
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)
 

Detailed Description

Both Lobby2Server and Lobby2Client derive from this class.

Member Function Documentation

void RakNet::Lobby2Plugin::SetMessageFactory ( Lobby2MessageFactory *  f)

Creates messages from message IDs.

Server should get a factory that creates messages with database functionality.
Client can use the base class

Parameters
[in]fClass factory instance, which should remain valid for the scope of the plugin
void RakNet::Lobby2Plugin::SetOrderingChannel ( char  oc)

Ordering channel to send messages on.

Parameters
[in]ocThe ordering channel
void RakNet::Lobby2Plugin::SetSendPriority ( PacketPriority  pp)

Send priority to send messages on.

Parameters
[in]ppThe packet priority

The documentation for this class was generated from the following file: