Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils > API/Plugins/OnlineSubsystemUtils/UIpNetDriver
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 |
UE::Net::ERecreateSocketResult RecreateSocket
&40;
int32 OverridePort
&41;
Remarks
Creates a new Socket for the NetDriver/NetConnection's, based on the address/binding of the existing socket, with a new ephemeral port. Used to attempt recovery for 'half-broken' connections, where (for whatever reason) only one side of the connection is receiving packets.
Also usable to test the 'restart handshake' feature, using the 'net RecreateSocket' command. Returns the action taken (e.g. successfully kicked off recreation, or whether this failed or is already in progress etc.)
Parameters
| Name | Description |
|---|---|
| OverridePort | optional port number to use with the new socket, otherwise falls back to GetClientPort() |