MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / Init

Method Init

pcsx2/DEV9/InternalServers/DNS_Server.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 void DNS_Server::Init(PIP_ADAPTER_ADDRESSES adapter)
87#elif defined(__POSIX__)
88 void DNS_Server::Init(ifaddrs* adapter)
89#endif
90 {
91 localhostIP = {{{127, 0, 0, 1}}};
92
93 //Find IPv4 Address
94 std::optional<IP_Address> adapterIP = AdapterUtils::GetAdapterIP(adapter);
95 if (adapterIP.has_value())
96 localhostIP = adapterIP.value();
97 else
98 Console.Error("DEV9: Failed To Get Adapter IP");
99
100 LoadHostList();
101 }
102
103 void DNS_Server::LoadHostList()
104 {

Callers 3

SendUDPMethod · 0.45
InitInternalServerMethod · 0.45
ReloadInternalServerMethod · 0.45

Calls 2

valueMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected