diff --git a/Libraries/LibCore/Socket.h b/Libraries/LibCore/Socket.h index 93061b20fc4..0e9fd143215 100644 --- a/Libraries/LibCore/Socket.h +++ b/Libraries/LibCore/Socket.h @@ -195,6 +195,8 @@ public: ErrorOr set_blocking(bool enabled) override { return m_helper.set_blocking(enabled); } ErrorOr set_close_on_exec(bool enabled) override { return m_helper.set_close_on_exec(enabled); } + int fd() const { return m_helper.fd(); } + virtual ~TCPSocket() override { close(); } private: