A simple class to relay messages from one system to another, identifying remote systems by a string.
More...
|
| RelayPlugin () |
| Constructor.
|
|
virtual | ~RelayPlugin () |
| Destructor.
|
|
RelayPluginEnums | AddParticipantOnServer (const RakString &key, const RakNetGUID &guid) |
| Forward messages from any system, to the system specified by the combination of key and guid. The sending system only needs to know the key.
|
|
void | RemoveParticipantOnServer (const RakNetGUID &guid) |
| Remove a chat participant.
|
|
void | SetAcceptAddParticipantRequests (bool accept) |
| If true, then if the client calls AddParticipantRequestFromClient(), the server will call AddParticipantOnServer() automatically Defaults to false.
|
|
void | AddParticipantRequestFromClient (const RakString &key, const RakNetGUID &relayPluginServerGuid) |
| Request from the client for the server to call AddParticipantOnServer()
|
|
void | RemoveParticipantRequestFromClient (const RakNetGUID &relayPluginServerGuid) |
| Remove yourself as a participant.
|
|
void | SendToParticipant (const RakNetGUID &relayPluginServerGuid, const RakString &destinationGuid, BitStream *bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel) |
| Request that the server relay bitStream to the system designated by key.
|
|
virtual PluginReceiveResult | OnReceive (Packet *packet) |
|
virtual void | OnClosedConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason) |
|
virtual void | OnAttach (void) |
| Called when the interface is attached.
|
|
virtual void | OnDetach (void) |
| Called when the interface is detached.
|
|
virtual void | Update (void) |
| Update is called every time a packet is checked for .
|
|
virtual void | OnRakPeerStartup (void) |
| Called when RakPeer is initialized.
|
|
virtual void | OnRakPeerShutdown (void) |
| Called when RakPeer is shutdown.
|
|
virtual void | OnNewConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, bool isIncoming) |
|
virtual void | OnFailedConnectionAttempt (Packet *packet, PI2_FailedConnectionAttemptReason failedConnectionAttemptReason) |
|
virtual bool | UsesReliabilityLayer (void) const |
|
virtual void | OnDirectSocketSend (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
virtual void | OnDirectSocketReceive (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
virtual void | OnReliabilityLayerNotification (const char *errorMessage, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress, bool isError) |
|
virtual void | OnInternalPacket (InternalPacket *internalPacket, unsigned frameNumber, SystemAddress remoteSystemAddress, RakNet::TimeMS time, int isSend) |
|
virtual void | OnAck (unsigned int messageNumber, SystemAddress remoteSystemAddress, RakNet::TimeMS time) |
|
virtual void | OnPushBackPacket (const char *data, const BitSize_t bitsUsed, SystemAddress remoteSystemAddress) |
|
A simple class to relay messages from one system to another, identifying remote systems by a string.