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

LibCore: Add fd() and notifier() accessors to Core::Stream::LocalSocket

This commit is contained in:
Andreas Kling 2022-10-05 15:28:05 +02:00
parent 35966cabe4
commit eb709ddd63
2 changed files with 10 additions and 0 deletions

View file

@ -468,6 +468,9 @@ public:
/// already closed.
ErrorOr<int> release_fd();
Optional<int> fd() const;
RefPtr<Core::Notifier> notifier() { return m_helper.notifier(); }
virtual ~LocalSocket() { close(); }
private: