Choose your operating system:
Windows
macOS
Linux
Deprecated
Use the CreateSocket with the FName parameter for support for multiple protocol types.
Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
Include |
#include "SocketSubsystem.h" |
virtual FSocket * CreateSocket
(
const FName & SocketType,
const FString & SocketDescription,
ESocketProtocolFamily ProtocolType
)
Creates a socket
SocketType type of socket to create (DGram, Stream, etc)
the new socket or NULL if failed
Parameter |
Description |
---|---|
SocketDescription |
debug description |
ProtocolType |
the socket protocol to be used. Each subsystem must handle the None case and output a valid socket regardless. |