UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SocketsWindows.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "HAL/PlatformTime.h"
7
8
9#if PLATFORM_HAS_BSD_SOCKET_FEATURE_WINSOCKETS && (PLATFORM_HAS_BSD_SOCKETS || PLATFORM_HAS_BSD_IPV6_SOCKETS)
10
12#include "Mswsock.h"
13
18 : public FSocketBSD
19{
20public:
23 { }
24
25 // FSocketBSD overrides
26
27 virtual bool Shutdown(ESocketShutdownMode Mode) override;
28 virtual bool SetIpPktInfo(bool bEnable) override;
29 virtual bool RecvFromWithPktInfo(uint8* Data, int32 BufferSize, int32& BytesRead, FInternetAddr& Source, FInternetAddr& Destination, ESocketReceiveFlags::Type Flags = ESocketReceiveFlags::None) override;
30
31protected:
33};
34
35
36#endif //PLATFORM_HAS_BSD_SOCKET_FEATURE_WINSOCKETS && (PLATFORM_HAS_BSD_SOCKETS || PLATFORM_HAS_BSD_IPV6_SOCKETS
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
int32 SOCKET
Definition SocketSubsystemBSDPrivate.h:47
ESocketType
Definition SocketTypes.h:33
ESocketShutdownMode
Definition SocketTypes.h:107
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition IPAddress.h:22
Definition NameTypes.h:617
Definition SocketSubsystem.h:58
Type
Definition SocketTypes.h:58
@ None
Definition SocketTypes.h:63