mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 15:27:04 +00:00
LibCore: Expose UDPServer::fd() and make the constructor protected
This commit is contained in:
committed by
Andreas Kling
parent
56831ed81f
commit
bc05ab47de
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user