CachedSocketSubsystem

[ISocketSubsystem::Get()](API\Runtime\Sockets\ISocketSubsystem\Get) is not thread-safe, so we cache it here.

Windows
MacOS
Linux

References

Module

Networking

Header

/Engine/Source/Runtime/Networking/Public/Interfaces/IPv4/IPv4Endpoint.h

Include

#include "Interfaces/IPv4/IPv4Endpoint.h"

Syntax

static ISocketSubsystem * CachedSocketSubsystem = nullptr;

Remarks

ISocketSubsystem::Get() is not thread-safe, so we cache it here.

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