UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSocketSubsystemWindows Class Reference

#include <SocketSubsystemWindows.h>

+ Inheritance diagram for FSocketSubsystemWindows:

Public Member Functions

 FSocketSubsystemWindows ()
 
virtual ~FSocketSubsystemWindows ()
 
virtual class FSocketCreateSocket (const FName &SocketType, const FString &SocketDescription, const FName &ProtocolType) override
 
virtual bool HasNetworkDevice () override
 
virtual ESocketErrors GetLastErrorCode () override
 
virtual bool GetLocalAdapterAddresses (TArray< TSharedPtr< FInternetAddr > > &OutAdresses) override
 
virtual const TCHARGetSocketAPIName () const override
 
virtual bool Init (FString &Error) override
 
virtual void Shutdown () override
 
virtual ESocketErrors TranslateErrorCode (int32 Code) override
 

Static Public Member Functions

static void Destroy ()
 

Public Attributes

PACKAGE_SCOPE : static FSocketSubsystemWindows* Create()
 

Protected Member Functions

virtual FSocketBSD * InternalBSDSocketFactory (SOCKET Socket, ESocketType SocketType, const FString &SocketDescription, const FName &SocketProtocol) override
 

Protected Attributes

bool bTriedToInit
 

Static Protected Attributes

static FSocketSubsystemWindowsSocketSingleton = nullptr
 

Detailed Description

Windows specific socket subsystem implementation.

Constructor & Destructor Documentation

◆ FSocketSubsystemWindows()

FSocketSubsystemWindows::FSocketSubsystemWindows ( )
inline

Default constructor.

◆ ~FSocketSubsystemWindows()

virtual FSocketSubsystemWindows::~FSocketSubsystemWindows ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ CreateSocket()

FSocket * FSocketSubsystemWindows::CreateSocket ( const FName SocketType,
const FString &  SocketDescription,
const FName ProtocolType 
)
overridevirtual

◆ Destroy()

void FSocketSubsystemWindows::Destroy ( )
static

Performs Windows specific socket clean up.

◆ GetLastErrorCode()

ESocketErrors FSocketSubsystemWindows::GetLastErrorCode ( )
overridevirtual

◆ GetLocalAdapterAddresses()

bool FSocketSubsystemWindows::GetLocalAdapterAddresses ( TArray< TSharedPtr< FInternetAddr > > &  OutAdresses)
overridevirtual

◆ GetSocketAPIName()

const TCHAR * FSocketSubsystemWindows::GetSocketAPIName ( ) const
overridevirtual

◆ HasNetworkDevice()

bool FSocketSubsystemWindows::HasNetworkDevice ( )
overridevirtual

◆ Init()

bool FSocketSubsystemWindows::Init ( FString &  Error)
overridevirtual

◆ InternalBSDSocketFactory()

FSocketBSD * FSocketSubsystemWindows::InternalBSDSocketFactory ( SOCKET  Socket,
ESocketType  SocketType,
const FString &  SocketDescription,
const FName SocketProtocol 
)
overrideprotectedvirtual

◆ Shutdown()

void FSocketSubsystemWindows::Shutdown ( void  )
overridevirtual

◆ TranslateErrorCode()

ESocketErrors FSocketSubsystemWindows::TranslateErrorCode ( int32  Code)
overridevirtual

Member Data Documentation

◆ __pad0__

PACKAGE_SCOPE FSocketSubsystemWindows::__pad0__

◆ bTriedToInit

bool FSocketSubsystemWindows::bTriedToInit
protected

Holds a flag indicating whether Init() has been called before or not.

◆ SocketSingleton

THIRD_PARTY_INCLUDES_START THIRD_PARTY_INCLUDES_END FSocketSubsystemWindows * FSocketSubsystemWindows::SocketSingleton = nullptr
staticprotected

Holds the single instantiation of this subsystem.


The documentation for this class was generated from the following files: