Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem > API/Runtime/Sockets/ISocketSubsystem/CreateUniqueSocket
References
| Module | Sockets |
| Header | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include | #include "SocketSubsystem.h" |
| Source | /Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp |
FUniqueSocket CreateUniqueSocket
&40;
const FName & SocketType,
const FString & SocketDescription,
const FName & ProtocolName
&41;
Remarks
Creates a socket using the given protocol name, 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
Parameters
| Name | Description |
|---|---|
| SocketDescription | debug description |
| ProtocolName | the name of the internet protocol to use for this socket. None should be handled. |