Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
Include |
#include "SocketSubsystem.h" |
Source |
/Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp |
virtual TSharedRef< FInternetAddr > GetLocalHostAddr
(
FOutputDevice & Out,
bool & bCanBindAll
)
Uses the platform specific look up to determine the host address
To better support multiple network interfaces and remove ambiguity between address protocols, it is encouraged to use GetLocalAdapterAddresses to determine machine addresses. Be sure to check GetMultihomeAddress ahead of time.
The local host address
Parameter |
Description |
---|---|
Out |
the output device to log messages to |
bCanBindAll |
true if all can be bound (no primarynet), false otherwise |