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

LibCore: Expose UDPServer::fd() and make the constructor protected

This commit is contained in:
Sergey Bugaev 2021-02-14 17:10:00 +03:00 committed by Andreas Kling
parent 56831ed81f
commit bc05ab47de

View file

@ -53,11 +53,14 @@ public:
Optional<IPv4Address> local_address() const;
Optional<u16> local_port() const;
int fd() const { return m_fd; }
Function<void()> on_ready_to_receive;
private:
protected:
explicit UDPServer(Object* parent = nullptr);
private:
int m_fd { -1 };
bool m_bound { false };
RefPtr<Notifier> m_notifier;