1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:27:45 +00:00

Kernel: Rename LocalSocket factory to try_create() & tighten return type

Also tighten the return type to KResultOr<NonnullRefPtr<LocalSocket>>
since it cannot return any other socket type.
This commit is contained in:
Andreas Kling 2021-08-29 01:22:34 +02:00
parent 244ede561b
commit 242063866f
3 changed files with 10 additions and 6 deletions

View file

@ -22,7 +22,7 @@ struct SocketPair {
class LocalSocket final : public Socket {
public:
static KResultOr<NonnullRefPtr<Socket>> create(int type);
static KResultOr<NonnullRefPtr<LocalSocket>> try_create(int type);
static KResultOr<SocketPair> create_connected_pair(int type);
virtual ~LocalSocket() override;