2019-04-02 15:46:44 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-04-02 19:54:38 +02:00
|
|
|
#include <Kernel/Net/NetworkAdapter.h>
|
2019-04-02 15:46:44 +02:00
|
|
|
|
|
|
|
class LoopbackAdapter final : public NetworkAdapter {
|
2019-04-03 12:15:42 +02:00
|
|
|
AK_MAKE_ETERNAL
|
2019-04-02 15:46:44 +02:00
|
|
|
public:
|
|
|
|
static LoopbackAdapter& the();
|
2019-04-05 05:10:18 +02:00
|
|
|
|
|
|
|
virtual ~LoopbackAdapter() override;
|
2019-04-02 15:46:44 +02:00
|
|
|
|
2019-07-03 21:17:35 +02:00
|
|
|
virtual void send_raw(const u8*, int) override;
|
2019-04-02 15:46:44 +02:00
|
|
|
virtual const char* class_name() const override { return "LoopbackAdapter"; }
|
|
|
|
|
|
|
|
private:
|
2019-04-05 05:10:18 +02:00
|
|
|
LoopbackAdapter();
|
2019-04-02 15:46:44 +02:00
|
|
|
};
|