00001 00002 00003 00004 00005 00006 00007 00008 #include "NativeFeatureIncludes.h" 00009 #if _RAKNET_SUPPORT_FullyConnectedMesh==1 00010 00011 #ifndef __FULLY_CONNECTED_MESH_H 00012 #define __FULLY_CONNECTED_MESH_H 00013 00014 class RakPeerInterface; 00015 #include "PluginInterface2.h" 00016 #include "RakMemoryOverride.h" 00017 00022 00027 class RAK_DLL_EXPORT FullyConnectedMesh : public PluginInterface2 00028 { 00029 public: 00030 FullyConnectedMesh(); 00031 virtual ~FullyConnectedMesh(); 00032 00033 // -------------------------------------------------------------------------------------------- 00034 // User functions 00035 // -------------------------------------------------------------------------------------------- 00037 void Startup(const char *password, int _passwordLength); 00038 00039 // -------------------------------------------------------------------------------------------- 00040 // Packet handling functions 00041 // -------------------------------------------------------------------------------------------- 00042 virtual PluginReceiveResult OnReceive(Packet *packet); 00043 00044 00045 protected: 00046 char *pw; 00047 int passwordLength; 00048 00049 SystemAddress facilitator; 00050 }; 00051 00052 #endif 00053 00054 #endif // _RAKNET_SUPPORT_*