mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
25 lines
471 B
C++
25 lines
471 B
C++
#include <Kernel/Net/LoopbackAdapter.h>
|
|
|
|
LoopbackAdapter& LoopbackAdapter::the()
|
|
{
|
|
static LoopbackAdapter* the;
|
|
if (!the)
|
|
the = new LoopbackAdapter;
|
|
return *the;
|
|
}
|
|
|
|
LoopbackAdapter::LoopbackAdapter()
|
|
{
|
|
set_ipv4_address({ 127, 0, 0, 1 });
|
|
}
|
|
|
|
LoopbackAdapter::~LoopbackAdapter()
|
|
{
|
|
}
|
|
|
|
void LoopbackAdapter::send_raw(const byte* data, int size)
|
|
{
|
|
dbgprintf("LoopbackAdapter: Sending %d byte(s) to myself.\n", size);
|
|
did_receive(data, size);
|
|
}
|