MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / InitializeIO

Method InitializeIO

source/Uthernet2.cpp:1474–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472}
1473
1474void Uthernet2::InitializeIO(LPBYTE pCxRomPeripheral)
1475{
1476 const std::string interfaceName = PCapBackend::GetRegistryInterface(m_slot);
1477 myNetworkBackend = GetFrame().CreateNetworkBackend(interfaceName);
1478 if (!myNetworkBackend->isValid())
1479 {
1480 // Interface doesn't exist or user picked an interface that isn't Ethernet!
1481 GetFrame().FrameMessageBox("Uthernet II interface isn't valid!\nReconfigure the Interface via 'Ethernet Settings'.", "Uthernet Interface", MB_ICONEXCLAMATION | MB_SETFOREGROUND);
1482 }
1483
1484 RegisterIoHandler(m_slot, u2_C0, u2_C0, IO_Null, IO_Null, this, nullptr);
1485}
1486
1487void Uthernet2::getMACAddress(const uint32_t address, const MACAddress * & mac)
1488{

Callers

nothing calls this directly

Calls 4

RegisterIoHandlerFunction · 0.85
CreateNetworkBackendMethod · 0.80
isValidMethod · 0.80
FrameMessageBoxMethod · 0.80

Tested by

no test coverage detected