UIpNetDriver::CreateSocketForProtocol

Creates a socket set up for communication using the given protocol.

Windows
MacOS
Linux

References

Module

OnlineSubsystemUtils

Header

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/IpNetDriver.h

Include

#include "IpNetDriver.h"

Source

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/IpNetDriver.cpp

Syntax

virtual FUniqueSocket CreateSocketForProtocol
(
    const FName & ProtocolType
)

Remarks

Creates a socket set up for communication using the given protocol. This allows for explicit creation instead of inferring type for you.

Returns

an FSocket if creation succeeded, nullptr if creation failed.

Parameters

Parameter

Description

ProtocolType

an FName that represents the protocol to allocate the new socket under. Typically set to None or a value in FNetworkProtocolTypes

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