| HandlerComponent
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/PacketHandlers/StatelessConnectHandlerComponent.h |
Include |
#include "PacketHandlers/StatelessConnectHandlerComponent.h" |
class StatelessConnectHandlerComponent : public HandlerComponent
PacketHandler component for implementing a stateless (non-memory-consuming) connection handshake
Partially based on the Datagram Transport Layer Security protocol.
Name | Description | |
---|---|---|
|
StatelessConnectHandlerComponent() |
Base constructor |
Name | Description | ||
---|---|---|---|
|
DoesRestartedHandshakeMatch ( |
When a restarted handshake is completed, this is used to match it up with the existing NetConnection |
|
|
GetChallengeSequence |
Used for retrieving the initial packet sequence values from the handshake data, after a successful challenge |
|
|
HasPassedChallenge ( |
Whether or not the specified connection address, has just passed the connection handshake challenge. |
|
|
InitFromConnectionless ( |
Initializes a serverside UNetConnection-associated StatelessConnect, from the connectionless StatelessConnect that negotiated the handshake. |
|
|
ResetChallengeData() |
Used to reset cached handshake success/fail state, when done processing it |
|
|
SetDriver ( |
Sets the net driver this handler is associated with |
Name | Description | ||
---|---|---|---|
|
CanReadUnaligned() |
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) |
|
|
CountBytes ( |
||
|
GetReservedPacketBits() |
Returns the amount of reserved packet/protocol bits expected from this component. |
|
|
Incoming ( |
Handles incoming packets |
|
|
IncomingConnectionless ( |
Handles incoming packets not associated with a UNetConnection |
|
|
Initialize() |
Initialization functionality should be placed here |
|
|
IsValid() |
Return whether this handler is valid |
|
|
NotifyHandshakeBegin() |
Notification to this component that it is ready to begin handshaking |
|
|
Outgoing ( |
Handles any outgoing packets |
|
|
OutgoingConnectionless ( |
Handles any outgoing packets not associated with a UNetConnection |
|
|
Tick ( |
Tick functionality should be placed here |
Name | Description | ||
---|---|---|---|
|
HasPassedChallenge ( |
HasPassedChallenge must return bOutRestartedHandshake, in order to correctly process the challenge. Use the new version |
|
|
HasPassedChallenge |
HasPassedChallenge should pass a FInternetAddr pointer for faster address checking |