Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils > API/Plugins/OnlineSubsystemUtils/UIpNetDriver > API/Plugins/OnlineSubsystemUtils/UIpNetDriver/SetSocketAndLocalAddress
Deprecated * Use the version of SetSocketAndLocalAddress which takes a TSharedPtr
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 |
void SetSocketAndLocalAddress
&40;
FSocket &42; NewSocket
&41;
Remarks
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.
Parameters
| Name | Description |
|---|---|
| NewSocket | The socket pointer to set this NetDriver's socket to |