ladybird/Kernel/LocalSocket.h

20 lines
400 B
C
Raw Normal View History

#pragma once
#include <Kernel/Socket.h>
#include <Kernel/DoubleBuffer.h>
class LocalSocket final : public Socket {
public:
static RetainPtr<LocalSocket> create(int type);
virtual ~LocalSocket() override;
virtual bool bind(const sockaddr*, socklen_t, int& error) override;
private:
explicit LocalSocket(int type);
DoubleBuffer m_for_client;
DoubleBuffer m_for_server;
};