![]() |
Fully Connected Mesh Implementation Overview
The fully connected mesh implementation reads connection messages from RakNet and tries to connect to all systems on the network. On a new connection, it will tell the remote system of all systems it knows about. When that packet arrives, that system will then try to connect to all those systems in turn. The implementation optionally takes a password which you can use to allow certain systems to join the mesh and other systems to not do so. Overridable event handlers In the current implementation these don't do anything. You can override them if you wish to do processing on invalid packets, such as banning the sender or logging the event. // Too much data was in a packet. User should override in a derived class to handle this virtual void OnDataOverflow(RakPeerInterface *peer, Packet *packet); // Not enough data was in a packet. User should override in a derived class to handle this virtual void OnDataUnderflow(RakPeerInterface *peer, Packet *packet); // Packet data that just doesn't make sense virtual void OnInvalidPacket(RakPeerInterface *peer, Packet *packet); // Wrong password virtual void OnJoinMeshAuthorizationFailed(RakPeerInterface *peer, Packet *packet); |
![]() |
Index Message Handler Interface Memory Synchronizer |