mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibCore: Expose UDPServer::fd() and make the constructor protected
This commit is contained in:
parent
56831ed81f
commit
bc05ab47de
1 changed files with 4 additions and 1 deletions
|
@ -53,11 +53,14 @@ public:
|
||||||
Optional<IPv4Address> local_address() const;
|
Optional<IPv4Address> local_address() const;
|
||||||
Optional<u16> local_port() const;
|
Optional<u16> local_port() const;
|
||||||
|
|
||||||
|
int fd() const { return m_fd; }
|
||||||
|
|
||||||
Function<void()> on_ready_to_receive;
|
Function<void()> on_ready_to_receive;
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
explicit UDPServer(Object* parent = nullptr);
|
explicit UDPServer(Object* parent = nullptr);
|
||||||
|
|
||||||
|
private:
|
||||||
int m_fd { -1 };
|
int m_fd { -1 };
|
||||||
bool m_bound { false };
|
bool m_bound { false };
|
||||||
RefPtr<Notifier> m_notifier;
|
RefPtr<Notifier> m_notifier;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue