UIpNetDriver::SetSocketAndLocalAddress

Set the current NetDriver's socket to the given socket.

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

void SetSocketAndLocalAddress
(
    const TSharedPtr< FSocket > & SharedSocket
)

Remarks

Set the current NetDriver's socket to the given socket. This is typically done after resolution completes successfully. This will also set the LocalAddr for the netdriver automatically.

Parameters

Parameter

Description

NewSocket

the socket pointer to set this netdriver's socket to

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