StatelessConnectHandlerComponent::GenerateCookie

Takes the client address plus server timestamp, and outputs a deterministic cookie value

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/PacketHandlers/StatelessConnectHandlerComponent.h

Include

#include "PacketHandlers/StatelessConnectHandlerComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PacketHandlers/StatelessConnectHandlerComponent.cpp

Syntax

void GenerateCookie
(
    const TSharedPtr< const FInternetAddr > & ClientAddress,
    uint8 SecretId,
    double Timestamp,
    uint8(&) OutCookie
) const

Remarks

Takes the client address plus server timestamp, and outputs a deterministic cookie value

Parameters

Parameter

Description

ClientAddress

The address of the client, including port

SecretId

Which of the two HandshakeSecret values the cookie will be based on

TimeStamp

The serverside timestamp

OutCookie

Outputs the generated cookie value.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel