RakNet
4.0
|
Both Lobby2Server and Lobby2Client derive from this class. More...
#include <Lobby2Plugin.h>
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();. | |
![]() | |
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) |
Both Lobby2Server and Lobby2Client derive from this class.
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
[in] | f | Class factory instance, which should remain valid for the scope of the plugin |
void RakNet::Lobby2Plugin::SetOrderingChannel | ( | char | oc | ) |
Ordering channel to send messages on.
[in] | oc | The ordering channel |
void RakNet::Lobby2Plugin::SetSendPriority | ( | PacketPriority | pp | ) |
Send priority to send messages on.
[in] | pp | The packet priority |