1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

Kernel: Rename LocalSocket::create_connected_pair() => try_*()

This commit is contained in:
Andreas Kling 2021-08-29 01:31:45 +02:00
parent 7f96288535
commit 48a1a3c0ce
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ KResultOr<NonnullRefPtr<LocalSocket>> LocalSocket::try_create(int type)
return ENOMEM;
}
KResultOr<SocketPair> LocalSocket::create_connected_pair(int type)
KResultOr<SocketPair> LocalSocket::try_create_connected_pair(int type)
{
auto socket_or_error = LocalSocket::try_create(type);
if (socket_or_error.is_error())

View file

@ -23,7 +23,7 @@ class LocalSocket final : public Socket {
public:
static KResultOr<NonnullRefPtr<LocalSocket>> try_create(int type);
static KResultOr<SocketPair> create_connected_pair(int type);
static KResultOr<SocketPair> try_create_connected_pair(int type);
virtual ~LocalSocket() override;
KResult sendfd(const FileDescription& socket_description, FileDescription& passing_description);