diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-08 04:53:45 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-08 04:56:11 +0200 |
commit | 6d5a54690e11e3912fdc5af61cbb8ce0abdf19c2 (patch) | |
tree | 54586f405373cc5358297472077f5c82f19190f0 /LibGUI/GHttpJob.h | |
parent | 65d6318c33ca6f3d6f26ab47c6144e5489d614bb (diff) | |
download | serenity-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.h | 2 |
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, |