#include <Lobby2Client.h>
Public Member Functions | |
void | SetServerAddress (SystemAddress addr) |
Set the address of the server. When you call SendMsg() the packet will be sent to this address. | |
virtual void | SendMsg (Lobby2Message *msg) |
Protected Member Functions | |
PluginReceiveResult | OnReceive (RakPeerInterface *peer, Packet *packet) |
void | OnCloseConnection (RakPeerInterface *peer, SystemAddress systemAddress) |
void | OnShutdown (RakPeerInterface *peer) |
void Lobby2Client::OnCloseConnection | ( | RakPeerInterface * | peer, | |
SystemAddress | systemAddress | |||
) | [protected, virtual] |
Called when a connection is dropped because the user called RakPeer::CloseConnection() for a particular system
[in] | peer | the instance of RakPeer that is calling Receive |
[in] | systemAddress | The system whose connection was closed |
Reimplemented from PluginInterface.
PluginReceiveResult Lobby2Client::OnReceive | ( | RakPeerInterface * | peer, | |
Packet * | packet | |||
) | [protected, virtual] |
OnReceive is called for every packet.
[in] | peer | the instance of RakPeer that is calling Receive |
[in] | packet | the packet that is being returned to the user |
Reimplemented from PluginInterface.
void Lobby2Client::OnShutdown | ( | RakPeerInterface * | peer | ) | [protected, virtual] |
Called when RakPeer is shutdown
[in] | peer | the instance of RakPeer that is calling Receive |
Reimplemented from PluginInterface.
void Lobby2Client::SendMsg | ( | Lobby2Message * | msg | ) | [virtual] |
Send a command to the server
[in] | msg | The message that represents the command |
[in] | callbackId | Which callback, registered with SetCallbackInterface() or AddCallbackInterface(), should process the result. -1 for all |