Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils > API/Plugins/OnlineSubsystemUtils/UIpNetDriver
Description
Set the current NetDriver's Socket/LocalAddr to the given socket (typically after Net Address Resolution). This will automatically pass the socket back through all NetConnection's, and trigger safe/deferred cleanup of the old socket.
| Name | SetSocketAndLocalAddress |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/IpNetDriver.h |
| Include Path | #include "IpNetDriver.h" |
| Source | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/IpNetDriver.cpp |
void SetSocketAndLocalAddress
(
const TSharedPtr < FSocket > & SharedSocket
)
Parameters
| Name | Remarks |
|---|---|
| NewSocket | The socket pointer to set this NetDriver's socket to |