RakNet
4.0
|
#include <PluginInterface2.h>
Public Member Functions | |
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 PluginReceiveResult | OnReceive (Packet *packet) |
virtual void | OnRakPeerStartup (void) |
Called when RakPeer is initialized. | |
virtual void | OnRakPeerShutdown (void) |
Called when RakPeer is shutdown. | |
virtual void | OnClosedConnection (const SystemAddress &systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason) |
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) |
RakNet's plugin system. Each plugin processes the following events: -Connection attempts -The result of connection attempts -Each incoming message -Updates over time, when RakPeer::Receive() is called
|
inlinevirtual |
Called when we get an ack for a message we reliably sent
[in] | messageNumber | The numerical identifier for which message this is |
[in] | remoteSystemAddress | The player we sent or got this packet from |
[in] | time | The current time as returned by RakNet::GetTimeMS() |
Reimplemented in RakNet::PacketLogger.
|
inlinevirtual |
Called when a connection is dropped because the user called RakPeer::CloseConnection() for a particular system
[in] | systemAddress | The system whose connection was closed |
[in] | rakNetGuid | The guid of the specified system |
[in] | lostConnectionReason | How the connection was closed: manually, connection lost, or notification of disconnection |
Reimplemented in RakNet::RoomsPlugin, RakNet::RPC3, RakNet::TeamManager, RakNet::ReplicaManager3, RakNet::StatisticsHistoryPlugin, RakNet::AutopatcherServer, RakNet::ReadyEvent, RakNet::FullyConnectedMesh2, RakNet::RakVoice, RakNet::NatPunchthroughClient, RakNet::MessageFilter, RakNet::Lobby2Server, RakNet::TeamBalancer, RakNet::CloudServer, RakNet::FileListTransfer, RakNet::RelayPlugin, RakNet::UDPProxyServer, RakNet::ConnectionGraph2, RakNet::HTTPConnection2, RakNet::Router2, RakNet::NatPunchthroughServer, RakNet::RakNetTransport2, RakNet::TwoWayAuthentication, RakNet::NatTypeDetectionServer, RakNet::Lobby2Client, RakNet::NatTypeDetectionClient, and RakNet::UDPProxyCoordinator.
|
inlinevirtual |
Called on a receive from the socket, per datagram, that does not go through the reliability layer
[in] | data | The data being sent |
[in] | bitsUsed | How many bits long data is |
[in] | remoteSystemAddress | Which system this message is being sent to |
Reimplemented in RakNet::PacketLogger.
|
inlinevirtual |
Called on a send to the socket, per datagram, that does not go through the reliability layer
[in] | data | The data being sent |
[in] | bitsUsed | How many bits long data is |
[in] | remoteSystemAddress | Which system this message is being sent to |
Reimplemented in RakNet::PacketLogger.
|
inlinevirtual |
Called when a connection attempt fails
[in] | packet | Packet to be returned to the user |
[in] | failedConnectionReason | Why the connection failed |
Reimplemented in RakNet::FullyConnectedMesh2, RakNet::HTTPConnection2, and RakNet::Router2.
|
inlinevirtual |
Called on a send or receive of a message within the reliability layer
[in] | internalPacket | The user message, along with all send data. |
[in] | frameNumber | The number of frames sent or received so far for this player depending on isSend . Indicates the frame of this user message. |
[in] | remoteSystemAddress | The player we sent or got this packet from |
[in] | time | The current time as returned by RakNet::GetTimeMS() |
[in] | isSend | Is this callback representing a send event or receive event? |
Reimplemented in RakNet::PacketLogger.
|
inlinevirtual |
Called when we got a new connection
[in] | systemAddress | Address of the new connection |
[in] | rakNetGuid | The guid of the specified system |
[in] | isIncoming | If true, this is ID_NEW_INCOMING_CONNECTION, or the equivalent |
Reimplemented in RakNet::TeamManager, RakNet::ReplicaManager3, RakNet::StatisticsHistoryPlugin, RakNet::FullyConnectedMesh2, RakNet::NatPunchthroughClient, RakNet::MessageFilter, RakNet::ConnectionGraph2, RakNet::HTTPConnection2, RakNet::NatPunchthroughServer, and RakNet::RakNetTransport2.
|
inlinevirtual |
System called RakPeerInterface::PushBackPacket
[in] | data | The data being sent |
[in] | bitsUsed | How many bits long data is |
[in] | remoteSystemAddress | The player we sent or got this packet from |
Reimplemented in RakNet::PacketLogger.
|
inlinevirtual |
OnReceive is called for every packet.
[in] | packet | the packet that is being returned to the user |
Reimplemented in RakNet::RoomsPlugin, RakNet::RPC3, RakNet::TeamManager, RakNet::ReplicaManager3, RakNet::RPC4, RakNet::AutopatcherServer, RakNet::ReadyEvent, RakNet::RakVoice, RakNet::FullyConnectedMesh2, RakNet::MessageFilter, RakNet::NatPunchthroughClient, RakNet::Lobby2Server, RakNet::TeamBalancer, RakNet::UDPProxyClient, RakNet::CloudClient, RakNet::CloudServer, RakNet::FileListTransfer, RakNet::SQLite3ClientPlugin, RakNet::RelayPlugin, RakNet::ConnectionGraph2, RakNet::UDPProxyServer, RakNet::HTTPConnection2, RakNet::Router2, RakNet::NatPunchthroughServer, RakNet::RakNetTransport2, RakNet::TwoWayAuthentication, RakNet::NatTypeDetectionServer, RakNet::Lobby2Client, RakNet::SQLite3ServerPlugin, RakNet::NatTypeDetectionClient, and RakNet::UDPProxyCoordinator.
|
inlinevirtual |
Called when the reliability layer rejects a send or receive
[in] | bitsUsed | How many bits long data is |
[in] | remoteSystemAddress | Which system this message is being sent to |
Reimplemented in RakNet::PacketLogger.
|
inlinevirtual |
Queried when attached to RakPeer Return true to call OnDirectSocketSend(), OnDirectSocketReceive(), OnReliabilityLayerNotification(), OnInternalPacket(), and OnAck() If true, then you cannot call RakPeer::AttachPlugin() or RakPeer::DetachPlugin() for this plugin, while RakPeer is active
Reimplemented in RakNet::PacketLogger.