Choose your operating system:
Windows
macOS
Linux
| ISocketSubsystem::GetLocalAdapterAddresses()
|
Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
Include |
#include "SocketSubsystem.h" |
Source |
/Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp |
virtual bool GetLocalAdapterAddresses
(
TArray< TSharedPtr< FInternetAddr >> & OutAddresses
)
Gets the list of addresses associated with the adapters on the local computer. Unlike GetLocalHostAddr, this function does not give preferential treatment to multihome options in results. It's encouraged that users check for multihome before using the results of this function.
true on success, false otherwise.
Parameter |
Description |
---|---|
OutAddresses |
Will hold the address list. |