--- nono/vm/ethernet.h 2026/04/29 17:04:41 1.1.1.4 +++ nono/vm/ethernet.h 2026/04/29 17:04:50 1.1.1.6 @@ -7,7 +7,6 @@ #pragma once #include "device.h" -#include "mystring.h" #include "qvector.h" #include #include @@ -25,7 +24,7 @@ // (LUNA, AM7990) (X68000, RTL8019) // // これ自体は IODevice である必要はないが、LanceDevice などの親になるため -// IODevice にしてある。(多重継承はしない) +// IODevice にしてある。(多重継承はしない) class NetDriver; @@ -72,11 +71,14 @@ class EthernetDevice : public IODevice protected: EthernetDevice(); public: - ~EthernetDevice() override; + virtual ~EthernetDevice() override; bool Create() override; bool Init() override; + // ワーカスレッド + virtual void ThreadRun() = 0; + // パケットを受信した。 // ホストネットワークドライバから呼ばれる。 // ホストネットワークスレッドで mtx 取得状態で呼ばれるので、