Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
Include |
#include "SocketSubsystem.h" |
Source |
/Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp |
FUniqueSocket CreateUniqueSocket
(
const FName & SocketType,
const FString & SocketDescription,
bool bForceUDP
)
Creates a socket wrapped in a unique pointer that will call DestroySocket automatically - do not call it explicitly! This SocketSubsystem must also outlive the sockets it creates.
SocketType type of socket to create (DGram, Stream, etc)
the new socket or NULL if failed
Parameter |
Description |
---|---|
SocketDescription |
debug description |
bForceUDP |
overrides any platform specific protocol with UDP instead |