Navigation
API > API/Runtime > API/Runtime/PacketHandler
Inheritance Hierarchy
- HandlerComponent
- FEncryptionComponent
- FAESGCMHandlerComponent
- StatelessConnectHandlerComponent
References
| Module | PacketHandler |
| Header | /Engine/Source/Runtime/PacketHandlers/PacketHandler/Public/PacketHandler.h |
| Include | #include "PacketHandler.h" |
Syntax
class HandlerComponent
Remarks
This class appends or modifies incoming and outgoing packets on a connection
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bRequiresHandshake | Whether this handler has to perform a network handshake during initialization (requires waiting on other HandlerComponent's) | |
| bool | bRequiresReliability | Whether this handler depends upon the ReliabilityHandlerComponent being enabled | |
| PacketHandler * | Handler | The manager of the handler, set in initialization | |
| uint32 | MaxOutgoingBits | Maximum number of Outgoing packet bits supported (automatically calculated to factor in other HandlerComponent reserved bits) | |
| UE::Handler::Component::State | State | The state of this handler |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Base constructorHandlerComponent | |||
HandlerComponent
(
FName InName |
Constructor that accepts a name |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Base destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | 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) | ||
| void | CountBytes
(
FArchive& Ar |
||
| FName | GetName () |
Returns the name of this component. | |
| int32 | Returns the amount of reserved packet/protocol bits expected from this component. | ||
| void | Incoming
(
FIncomingPacketRef PacketRef |
Handles incoming packets | |
| void | IncomingConnectionless
(
FIncomingPacketRef PacketRef |
Handles incoming packets not associated with a UNetConnection | |
| void | InitFaultRecovery
(
UE::Net::FNetConnectionFaultRecoveryBase* InFaultRecovery |
Initializes a reference to the NetConnection fault recovery interface (does not require Engine dependency) | |
| void | Initialize () |
Initialization functionality should be placed here | |
| void | Initialized () |
Should be called when the handler is fully initialized on both remote and local | |
| bool | IsActive () |
Returns whether this handler is currently active | |
| bool | Returns whether this handler is initialized | ||
| bool | IsValid () |
Return whether this handler is valid | |
| void | Notification that the analytics provider has been updated NOTE: Can also mean disabled, e.g. during hotfix | ||
| void | Notification to this component that it is ready to begin handshaking | ||
| void | Outgoing
(
FBitWriter& Packet, |
Handles any outgoing packets | |
| void | OutgoingConnectionless
(
const TSharedPtr< const FInternetAddr >& Address, |
Handles any outgoing packets not associated with a UNetConnection | |
| bool | Returns whether this handler perform a network handshake during initialization | ||
| bool | Returns whether this handler perform a network handshake during initialization | ||
| void | SetActive
(
bool Active |
Sets whether this handler is currently active | |
| void | SetState
(
UE::Handler::Component::State State |
Sets the state of the handler | |
| void | Tick
(
float DeltaTime |
Tick functionality should be placed here |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Incoming
(
FBitReader& Packet |
Use the version of 'HandlerComponent::Incoming' which takes 'FIncomingPacketRef' instead |