![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PacketHandler.h>
Inheritance diagram for HandlerComponent:Public Attributes | |
| PacketHandler * | Handler |
Protected Member Functions | |
| PACKETHANDLER_API void | SetState (UE::Handler::Component::State State) |
| PACKETHANDLER_API void | Initialized () |
Protected Attributes | |
| UE::Handler::Component::State | State |
| uint32 | MaxOutgoingBits |
| bool | bRequiresHandshake |
| bool | bRequiresReliability |
Friends | |
| class | PacketHandler |
This class appends or modifies incoming and outgoing packets on a connection
| HandlerComponent::HandlerComponent | ( | ) |
Base constructor
|
explicit |
Constructor that accepts a name
|
virtualdefault |
Base destructor
Whether or not the Incoming/IncomingConnectionless implementations, support reading Packets that aren't aligned at bit position 0 (i.e. whether or not this handler supports bit-level, rather than byte-level, reads)
Reimplemented in StatelessConnectHandlerComponent.
Reimplemented in StatelessConnectHandlerComponent.
|
inline |
Returns the name of this component.
Returns the amount of reserved packet/protocol bits expected from this component.
IMPORTANT: This MUST be accurate, and should represent the worst-case number of reserved bits expected from the component. If this is inaccurate, packets will randomly fail to send, in rare cases which are extremely hard to trace.
Implemented in StatelessConnectHandlerComponent.
|
inlinevirtual |
Reimplemented in StatelessConnectHandlerComponent.
|
inlinevirtual |
Handles incoming packets
| PacketRef | Reference of the packet being processed |
|
inlinevirtual |
Handles incoming packets not associated with a UNetConnection
| PacketRef | Reference of the packet being processed |
Reimplemented in StatelessConnectHandlerComponent.
|
inlinevirtual |
Initializes a reference to the NetConnection fault recovery interface (does not require Engine dependency)
| InFaultRecovery | A reference to the fault recovery interface |
Initialization functionality should be placed here
Implemented in StatelessConnectHandlerComponent.
|
protected |
Should be called when the handler is fully initialized on both remote and local
|
virtual |
Returns whether this handler is currently active
| bool HandlerComponent::IsInitialized | ( | ) | const |
Returns whether this handler is initialized
Return whether this handler is valid
Implemented in StatelessConnectHandlerComponent.
Notification that the analytics provider has been updated NOTE: Can also mean disabled, e.g. during hotfix
Notification to this component that it is ready to begin handshaking
Reimplemented in StatelessConnectHandlerComponent.
|
inlinevirtual |
Handles any outgoing packets
| Packet | The packet to be handled |
| Traits | Traits for the packet, passed down through the packet pipeline (likely from the NetConnection) |
Reimplemented in StatelessConnectHandlerComponent.
|
inlinevirtual |
Handles any outgoing packets not associated with a UNetConnection
| Address | The address the packet is being sent to |
| Packet | The packet to be handled |
| Traits | Traits for the packet, passed down through the packet pipeline (if applicable) |
|
inline |
Returns whether this handler perform a network handshake during initialization
|
inline |
Returns whether this handler perform a network handshake during initialization
Sets whether this handler is currently active
| Active | Whether or not the handled should be active |
|
protected |
Sets the state of the handler
| State | The new state for the handler |
Tick functionality should be placed here
Reimplemented in StatelessConnectHandlerComponent.
|
friend |
|
protected |
Whether this handler has to perform a network handshake during initialization (requires waiting on other HandlerComponent's)
|
protected |
Whether this handler depends upon the ReliabilityHandlerComponent being enabled
| PacketHandler* HandlerComponent::Handler |
The manager of the handler, set in initialization
|
protected |
Maximum number of Outgoing packet bits supported (automatically calculated to factor in other HandlerComponent reserved bits)
|
protected |
The state of this handler