Public Member Functions | Protected Attributes

FullyConnectedMesh Class Reference
[FullyConnectedMesh]

#include <FullyConnectedMesh.h>

Inherits PluginInterface2.

Collaboration diagram for FullyConnectedMesh:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FullyConnectedMesh ()
virtual ~FullyConnectedMesh ()
void Startup (const char *password, int _passwordLength)
 Set the password to use to connect to the other systems.
virtual PluginReceiveResult OnReceive (Packet *packet)

Protected Attributes

char * pw
int passwordLength
SystemAddress facilitator

Detailed Description

Fully connected mesh plugin. This will connect RakPeer to all connecting peers, and all peers the connecting peer knows about.

Deprecated:
Use FullyConnectedMesh2
Precondition:
You must also install the ConnectionGraph plugin. If you want a password, set it there.

Definition at line 27 of file FullyConnectedMesh.h.


Constructor & Destructor Documentation

FullyConnectedMesh::FullyConnectedMesh (  ) 

Definition at line 22 of file FullyConnectedMesh.cpp.

FullyConnectedMesh::~FullyConnectedMesh (  )  [virtual]

Definition at line 27 of file FullyConnectedMesh.cpp.


Member Function Documentation

PluginReceiveResult FullyConnectedMesh::OnReceive ( Packet packet  )  [virtual]

OnReceive is called for every packet.

Parameters:
[in] packet the packet that is being returned to the user
Returns:
True to allow the game and other plugins to get this message, false to absorb it

Reimplemented from PluginInterface2.

Definition at line 48 of file FullyConnectedMesh.cpp.

Here is the call graph for this function:

void FullyConnectedMesh::Startup ( const char *  password,
int  _passwordLength 
)

Set the password to use to connect to the other systems.

Definition at line 33 of file FullyConnectedMesh.cpp.


Member Data Documentation

Definition at line 49 of file FullyConnectedMesh.h.

Definition at line 47 of file FullyConnectedMesh.h.

char* FullyConnectedMesh::pw [protected]

Definition at line 46 of file FullyConnectedMesh.h.


The documentation for this class was generated from the following files: