summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/CSocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibCore/CSocket.h')
-rw-r--r--Libraries/LibCore/CSocket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibCore/CSocket.h b/Libraries/LibCore/CSocket.h
index 20d059166b..7aac4008f9 100644
--- a/Libraries/LibCore/CSocket.h
+++ b/Libraries/LibCore/CSocket.h
@@ -39,6 +39,7 @@ public:
int destination_port() const { return m_destination_port; }
Function<void()> on_connected;
+ Function<void()> on_ready_to_read;
protected:
CSocket(Type, CObject* parent);
@@ -49,8 +50,11 @@ protected:
int m_destination_port { -1 };
bool m_connected { false };
+ virtual void did_update_fd(int) override;
+
private:
virtual bool open(CIODevice::OpenMode) override { ASSERT_NOT_REACHED(); }
Type m_type { Type::Invalid };
OwnPtr<CNotifier> m_notifier;
+ OwnPtr<CNotifier> m_read_notifier;
};