summaryrefslogtreecommitdiff
path: root/LibGUI/GHttpJob.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-08 04:53:45 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-08 04:56:11 +0200
commit6d5a54690e11e3912fdc5af61cbb8ce0abdf19c2 (patch)
tree54586f405373cc5358297472077f5c82f19190f0 /LibGUI/GHttpJob.h
parent65d6318c33ca6f3d6f26ab47c6144e5489d614bb (diff)
downloadserenity-6d5a54690e11e3912fdc5af61cbb8ce0abdf19c2.zip
LibGUI: Make GSocket connection asynchronous.
Now connect() will return immediately. Later on, when the socket is actually connected, it will call GSocket::on_connected from the event loop. :^)
Diffstat (limited to 'LibGUI/GHttpJob.h')
-rw-r--r--LibGUI/GHttpJob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGUI/GHttpJob.h b/LibGUI/GHttpJob.h
index 35ea33f243..adc0d72155 100644
--- a/LibGUI/GHttpJob.h
+++ b/LibGUI/GHttpJob.h
@@ -16,6 +16,8 @@ public:
virtual const char* class_name() const override { return "GHttpJob"; }
private:
+ void on_socket_connected();
+
enum class State {
InStatus,
InHeaders,