CachedSocketSubsystem

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

Choose your operating system:

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.