summaryrefslogtreecommitdiff
path: root/Kernel/Net/LocalSocket.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-29 01:22:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-29 01:25:03 +0200
commit242063866f855bf01259f8cae5d1a877fe1fc031 (patch)
tree03a5d27b702d53e5e17ea0f0a6414c062367c6a7 /Kernel/Net/LocalSocket.h
parent244ede561b3d9e0a5b3f63c9714e7bee7008c74d (diff)
downloadserenity-242063866f855bf01259f8cae5d1a877fe1fc031.zip
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.
Diffstat (limited to 'Kernel/Net/LocalSocket.h')
-rw-r--r--Kernel/Net/LocalSocket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h
index af4728c53f..7a69814897 100644
--- a/Kernel/Net/LocalSocket.h
+++ b/Kernel/Net/LocalSocket.h
@@ -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;