ISocketSubsystem::CreateSocket

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

Windows
MacOS
Linux

References

Module

Sockets

Header

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

Include

#include "SocketSubsystem.h"

Syntax

virtual FSocket * CreateSocket
(
    const FName & SocketType,
    const FString & SocketDescription,
    bool bForceUDP
)

Remarks

Creates a socket

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

Returns

the new socket or NULL if failed

Parameters

Parameter

Description

SocketDescription

debug description

bForceUDP

overrides any platform specific protocol with UDP instead

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss