UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SocketSubsystemWindows.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "SocketSubsystem.h"
7#include "SocketsWindows.h"
9
14 : public FSocketSubsystemBSD
15{
16public:
17
22
25
26public:
27
28 // FSocketSubsystemBSD overrides
29
30 virtual class FSocket* CreateSocket(const FName& SocketType, const FString& SocketDescription, const FName& ProtocolType) override;
31 virtual bool HasNetworkDevice() override;
32 virtual ESocketErrors GetLastErrorCode() override;
34 virtual const TCHAR* GetSocketAPIName() const override;
35 virtual bool Init( FString& Error ) override;
36 virtual void Shutdown() override;
37 virtual ESocketErrors TranslateErrorCode( int32 Code ) override;
38
40
47
49 static void Destroy();
50
51protected:
52
53 virtual FSocketBSD* InternalBSDSocketFactory(SOCKET Socket, ESocketType SocketType, const FString& SocketDescription, const FName& SocketProtocol) override;
54
57
60};
#define PACKAGE_SCOPE
Definition CoreOnlinePackage.h:9
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void Init()
Definition LockFreeList.h:4
ESocketErrors
Definition SocketErrors.h:9
int32 SOCKET
Definition SocketSubsystemBSDPrivate.h:47
ESocketType
Definition SocketTypes.h:33
Definition NameTypes.h:617
Definition SocketSubsystemWindows.h:15
static void Destroy()
Definition SocketSubsystemWindows.cpp:60
bool bTriedToInit
Definition SocketSubsystemWindows.h:56
virtual ~FSocketSubsystemWindows()
Definition SocketSubsystemWindows.h:24
virtual ESocketErrors GetLastErrorCode() override
Definition SocketSubsystemWindows.cpp:129
virtual const TCHAR * GetSocketAPIName() const override
Definition SocketSubsystemWindows.cpp:267
virtual bool HasNetworkDevice() override
Definition SocketSubsystemWindows.cpp:261
static FSocketSubsystemWindows * SocketSingleton
Definition SocketSubsystemWindows.h:59
virtual ESocketErrors TranslateErrorCode(int32 Code) override
Definition SocketSubsystemWindows.cpp:188
virtual bool GetLocalAdapterAddresses(TArray< TSharedPtr< FInternetAddr > > &OutAdresses) override
Definition SocketSubsystemWindows.cpp:135
FSocketSubsystemWindows()
Definition SocketSubsystemWindows.h:19
virtual class FSocket * CreateSocket(const FName &SocketType, const FString &SocketDescription, const FName &ProtocolType) override
Definition SocketSubsystemWindows.cpp:74
virtual void Shutdown() override
Definition SocketSubsystemWindows.cpp:123
virtual FSocketBSD * InternalBSDSocketFactory(SOCKET Socket, ESocketType SocketType, const FString &SocketDescription, const FName &SocketProtocol) override
Definition SocketSubsystemWindows.cpp:272
Definition Sockets.h:19
Definition Array.h:670
Definition SharedPointer.h:692
@ false
Definition radaudio_common.h:23