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:
parent
244ede561b
commit
242063866f
3 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue