1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibCore: Add API for taking over an accepted socket from SystemServer

Core::LocalSocket::take_over_accepted_socket_from_system_server() now
allows you to construct a Core::LocalSocket for a pre-accepted socket
when using SystemServer's new AcceptSocketConnections mode.
This commit is contained in:
Andreas Kling 2020-06-21 21:18:45 +02:00
parent 457a687050
commit 6bc40b20b8
Notes: sideshowbarker 2024-07-19 05:28:09 +09:00
2 changed files with 38 additions and 0 deletions

View file

@ -35,6 +35,8 @@ class LocalSocket final : public Socket {
public:
virtual ~LocalSocket() override;
static RefPtr<LocalSocket> take_over_accepted_socket_from_system_server();
private:
explicit LocalSocket(Object* parent = nullptr);
LocalSocket(int fd, Object* parent = nullptr);