#include <FullyConnectedMesh.h>
Inheritance diagram for FullyConnectedMesh:
Public Member Functions | |
void | Initialize (const char *password) |
Plaintext encoding of the password. If you use a password, use secure connections. | |
virtual void | OnDisconnect (RakPeerInterface *peer) |
virtual void | OnUpdate (RakPeerInterface *peer) |
virtual int | OnReceive (RakPeerInterface *peer, Packet *packet) |
virtual bool | PropagateToGame (Packet *packet) const |
virtual void | OnCloseConnection (RakPeerInterface *peer, PlayerID playerId) |
Called when a connection is dropped because the user called RakPeer::CloseConnection() for a particular player. | |
virtual void | OnDataOverflow (RakPeerInterface *peer, Packet *packet) |
Too much data was in a packet. User should override in a derived class to handle this. | |
virtual void | OnDataUnderflow (RakPeerInterface *peer, Packet *packet) |
Not enough data was in a packet. User should override in a derived class to handle this. | |
virtual void | OnInvalidPacket (RakPeerInterface *peer, Packet *packet) |
Packet data that just doesn't make sense. | |
virtual void | OnJoinMeshAuthorizationFailed (RakPeerInterface *peer, Packet *packet) |
Wrong password. | |
unsigned | GetMeshPeerListSize (void) const |
PlayerID | GetPeerIDAtIndex (unsigned index) |
Protected Member Functions | |
void | HandleConnectionRequestAccepted (RakPeerInterface *peer, Packet *packet) |
void | HandleDroppedConnection (RakPeerInterface *peer, PlayerID playerId) |
void | HandleMeshJoinRequest (RakPeerInterface *peer, Packet *packet) |
void | HandleMeshJoinResponse (RakPeerInterface *peer, Packet *packet) |
void | AddUniquePeer (RakPeerInterface *peer, FCM_RemotePeer::FCM_RemotePeerState state, PlayerID playerId, bool remotelyKnown) |
virtual void | AppendMeshJoinAuthorization (RakNet::BitStream *bitStream) |
virtual bool | ValidateMeshJoinAuthorization (RakNet::BitStream *bitStream) |
void | SerializeRemotelyUnknownPeers (RakNet::BitStream *bitStream) |
bool | DeserializeMeshPeerList (RakPeerInterface *peer, RakNet::BitStream *bitStream) |
void | DeleteFromPeerList (PlayerID playerId) |
void | MarkAllRemotelyKnown (bool value) |
int | MeshPeerIndexFromPlayerID (PlayerID playerId) |
void | ConnectToNewlyListedServers (RakPeerInterface *peer) |
Protected Attributes | |
char * | pw |
BasicDataStructures::List< FCM_RemotePeer * > | meshPeerList |
|
Called when RakPeer is shutdown
Reimplemented from PluginInterface. |
|
OnReceive is called for every packet.
Reimplemented from PluginInterface. |
|
OnUpdate is called every time a packet is checked for .
Reimplemented from PluginInterface. |
|
PropagateToGame tells RakPeer if a particular packet should be sent to the game or notIf you create a custom packet ID just for this handler you would not want to propagate it to the game, for example
Reimplemented from PluginInterface. |