UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BSDSocketTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
7#if PLATFORM_HAS_BSD_SOCKETS
8
9#if PLATFORM_HAS_BSD_SOCKET_FEATURE_WINSOCKETS
10 typedef UPTRINT SOCKET;
11 #define INVALID_SOCKET (SOCKET)(~0)
12#else // PLATFORM_HAS_BSD_SOCKET_FEATURE_WINSOCKETS
13 typedef int32 SOCKET;
14 #define INVALID_SOCKET -1
15#endif // PLATFORM_HAS_BSD_SOCKET_FEATURE_WINSOCKETS
16
17#define SOCKET_RESULT_FAILED -1
18
19#endif // PLATFORM_HAS_BSD_SOCKETS
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::UPTRINT UPTRINT
An unsigned integer the same size as a pointer.
Definition Platform.h:1146
int32 SOCKET
Definition SocketSubsystemBSDPrivate.h:47