UIpNetDriver::CreateSocket

Creates a socket to be used for network communications.

Windows
MacOS
Linux

Deprecated

  • Socket creation is now restricted to subclasses and done through CreateSocketForProtocol or CreateAndBindSocket

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 FSocket * CreateSocket()

Remarks

Creates a socket to be used for network communications. Uses the LocalAddr (if set) to determine protocol flags

Returns

an FSocket if creation succeeded, nullptr if creation failed.

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