ISocketSubsystem::CreateSocket

Creates a socket using the given protocol name.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

ISocketSubsystem::CreateSocket()

FSteamSocketsSubsystem::CreateSocket()

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h

Include

#include "SocketSubsystem.h"

Syntax

FSocket * CreateSocket
(
    const FName & SocketType,
    const FString & SocketDescription,
    const FName & ProtocolName
)

Remarks

Creates a socket using the given protocol name.

SocketType type of socket to create (DGram, Stream, etc)

Returns

the new socket or NULL if failed

Parameters

Parameter

Description

SocketDescription

debug description

ProtocolName

the name of the internet protocol to use for this socket. None should be handled.