1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00
serenity/Kernel/LocalSocket.h
2019-02-14 14:38:30 +01:00

19 lines
400 B
C++

#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;
};