mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibIPC: Allow creating MultiServer from an already existing LocalServer
This commit is contained in:
@@ -23,6 +23,11 @@ public:
|
||||
return adopt_nonnull_own_or_enomem(new (nothrow) MultiServer(move(server)));
|
||||
}
|
||||
|
||||
static ErrorOr<NonnullOwnPtr<MultiServer>> try_create(NonnullRefPtr<Core::LocalServer> server)
|
||||
{
|
||||
return adopt_nonnull_own_or_enomem(new (nothrow) MultiServer(move(server)));
|
||||
}
|
||||
|
||||
Function<void(ConnectionFromClientType&)> on_new_client;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user