| FVirtualDestructor
|
Module |
|
Header |
/Engine/Source/Runtime/PacketHandlers/PacketHandler/Public/PacketHandler.h |
Include |
#include "PacketHandler.h" |
class PacketHandler : public FVirtualDestructor
This class maintains an array of all PacketHandler Components and forwards incoming and outgoing packets the each component
Name | Description | ||
---|---|---|---|
|
Mode |
Mode of the handler, Client or Server |
Name | Description | |
---|---|---|
|
PacketHandler ( |
Base constructor |
Name | Description | ||
---|---|---|---|
|
AddHandler ( |
Adds a HandlerComponent to the pipeline, prior to initialization (none can be added after initialization) |
|
|
TSharedPtr< ... |
AddHandler |
As above, but initializes from a string specifying the component module, and (optionally) additional options |
|
BeginHandshaking ( |
Triggered by the higher level netcode, to begin any required HandlerComponent handshakes |
|
|
CountBytes ( |
||
|
DoesAnyProfileHaveComponent ( |
Searches the PacketHandler profile configurations to find if a component is listed. |
|
|
DoesProfileHaveComponent |
Searches the PacketHandler profile configuration for the given netdriver to find if a component is listed. |
|
|
TSharedPtr< ... |
GetAggregator() |
Returns the analytics aggregator |
|
TSharedPtr< ... |
GetComponentByName ( |
Returns a pointer to the first component in the HandlerComponents array with the specified name. |
|
FDDoSDetecti... |
GetDDoS() |
Returns a pointer to the DDoS detection handler |
|
TSharedPtr< ... |
GetEncryptionComponent() |
Returns a pointer to the component set as the encryption handler, if any. |
|
TSharedPtr< ... |
GetProvider() |
Returns the analytics provider |
|
BufferedPack... |
GetQueuedConnectionlessPacket() |
Gets a packet from the buffered connectionless packet queue for sending |
|
BufferedPack... |
GetQueuedPacket() |
Gets a packet from the buffered packet queue for sending |
|
BufferedPack... |
GetQueuedRawPacket() |
Gets a packet from the buffered packet queue for sending (as a raw packet) |
|
GetRawSend() |
Whether or not raw packet sends are enabled |
|
|
GetTotalReservedPacketBits() |
Gets the combined reserved packet/protocol bits from all handlers, for reserving space in the parent connections packets |
|
|
HandlerComponentInitialized ( |
Triggered when a child HandlerComponent has been initialized |
|
|
const Proces... |
Incoming |
Processes incoming packets at the PacketHandler level, before any UNetConnection processing takes place on the packet. |
|
const Proces... |
Incoming_Internal ( |
Internal handling for Incoming/IncomingConnectionless |
|
const Proces... |
IncomingConnectionless ( |
Processes incoming packets without a UNetConnection, in the same manner as 'Incoming' above IMPORTANT: Net drivers triggering this, should call 'UNetDriver::FlushHandler' shortly afterwards, to minimize packet buffering NOTE: Connectionless packets are unreliable. |
|
IncomingHigh ( |
Processes incoming packets at the UNetConnection level, after uncapping the packet into an FBitReader. |
|
|
Initialize ( |
Handles initialization of manager |
|
|
InitializeComponents() |
Triggers initialization of HandlerComponents. |
|
|
InitializeDelegates ( |
Used for external initialization of delegates |
|
|
IsFullyInitialized() |
Whether or not the packet handler is fully initialized, post-handshake etc. |
|
|
NotifyAnalyticsProvider ( |
Notification that the NetDriver analytics provider has been updated (NOT called on first initialization) NOTE: Can also mean disabled, e.g. during hotfix |
|
|
const Proces... |
Outgoing ( |
Processes outgoing packets at the PacketHandler level, after all UNetConnection processing. |
|
const Proces... |
Outgoing_Internal ( |
Internal handling for Outgoing/OutgoingConnectionless |
|
const Proces... |
OutgoingConnectionless ( |
Processes outgoing packets without a UNetConnection, in the same manner as 'Outgoing' above NOTE: Connectionless packets are unreliable. |
|
OutgoingHigh ( |
Processes outgoing packets at the UNetConnection level, after game data is written, and just before the packet is capped. |
|
|
QueueHandlerPacketForSending ( |
Queue's a packet to be sent through 'SendHandlerPacket' |
|
|
QueuePacketForRawSending ( |
Queue's a packet to be sent when the handler is ticked (as a raw packet, since it's already been processed) |
|
|
SendHandlerPacket ( |
Send a packet originating from a HandlerComponent - will process through the HandlerComponents chain, starting after the triggering component. |
|
|
SetRawSend ( |
Sets whether or not outgoing packets should bypass this handler - used when raw packet sends are necessary (such as for the stateless handshake) |
|
|
Tick ( |
Name |
Description |
---|---|
NetDriverAddressFunc |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
GetAddressFromString ( |
This function should not be used except for backwards compatibility with deprecated functions. |
|
const Proces... |
Incoming_Internal |
Address is now taken as a shared pointer to remove the burden of format differences from the packethandler |
|
const Proces... |
IncomingConnectionless |
Use the FInternetAddr structure version. |
|
InitializeAddressSerializer ( |
Do not use this function directly, it is provided for backwards compatibility with older versions of LowLevelSend |
|
|
InitializeDelegates ( |
Use the traits based delegate instead for compatibility with other systems. |
|
|
const Proces... |
Outgoing |
Please move to the functional flow that includes support for PacketTraits. |
|
const Proces... |
Outgoing_Internal ( |
Address is now taken as a shared pointer to remove the burden of format differences from the packethandler |
|
const Proces... |
OutgoingConnectionless |
Please use the member that supports PacketTraits for alllowing additional flags on sends. |
|
const Proces... |
OutgoingConnectionless ( |
Use the FInternetAddr structure version. |
|
SendHandlerPacket ( |
Please use the packet traits when sending to handle modifications of packets and analytics. |