Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem > API/Runtime/Sockets/ISocketSubsystem/CreateSocket
Deprecated * Use the CreateSocket with the FName parameter for support for multiple protocol types.
References
| Module | Sockets |
| Header | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include | #include "SocketSubsystem.h" |
virtual FSocket &42; CreateSocket
&40;
const FName & SocketType,
const FString & SocketDescription,
ESocketProtocolFamily ProtocolType
&41;
Remarks
Creates a socket
SocketType type of socket to create (DGram, Stream, etc) the new socket or NULL if failed
Parameters
| Name | Description |
|---|---|
| SocketDescription | debug description |
| ProtocolType | the socket protocol to be used. Each subsystem must handle the None case and output a valid socket regardless. |