mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 22:28:22 +00:00
LibCore: Implement LocalSocket::peer_pid
Mostly a copy of Core::LocalSocket::peer_pid.
This commit is contained in:
parent
92be52fd9f
commit
4cad0dd74c
Notes:
sideshowbarker
2024-07-17 20:52:23 +09:00
Author: https://github.com/sin-ack
Commit: 4cad0dd74c
Pull-request: https://github.com/SerenityOS/serenity/pull/11890
2 changed files with 37 additions and 0 deletions
|
@ -413,6 +413,7 @@ public:
|
|||
|
||||
ErrorOr<int> receive_fd(int flags);
|
||||
ErrorOr<void> send_fd(int fd);
|
||||
ErrorOr<pid_t> peer_pid() const;
|
||||
ErrorOr<size_t> read_without_waiting(Bytes buffer);
|
||||
|
||||
virtual ~LocalSocket() { close(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue