mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
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. :^)
This commit is contained in:
parent
65d6318c33
commit
6d5a54690e
11 changed files with 65 additions and 29 deletions
|
@ -19,9 +19,9 @@ int main(int argc, char** argv)
|
|||
return;
|
||||
}
|
||||
auto& response = static_cast<const GHttpResponse&>(*job->response());
|
||||
printf("on_receive: code=%d\n", response.code());
|
||||
printf("payload:\n");
|
||||
printf("%s", response.payload().pointer());
|
||||
printf("%s{%p}: on_receive: code=%d\n", job->class_name(), job, response.code());
|
||||
//printf("payload:\n");
|
||||
//printf("%s", response.payload().pointer());
|
||||
printf("payload was %d bytes\n", response.payload().size());
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue