mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 16:34:13 +00:00
use socket api
This commit is contained in:
parent
b35f70b1db
commit
747f622e4d
@ -320,7 +320,7 @@ void Page::navigation_reload(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Connection established, begin request
|
// Connection established, begin request
|
||||||
if (socket__connection != nullptr)
|
if (Socket::Connection::is_active(socket__connection)) // @TODO
|
||||||
{
|
{
|
||||||
// Build gemini protocol request
|
// Build gemini protocol request
|
||||||
const Glib::ustring SOCKET__REQUEST = Glib::ustring::sprintf(
|
const Glib::ustring SOCKET__REQUEST = Glib::ustring::sprintf(
|
||||||
@ -350,6 +350,7 @@ void Page::navigation_reload(
|
|||||||
action__update->activate();
|
action__update->activate();
|
||||||
|
|
||||||
// Response
|
// Response
|
||||||
|
// if (Socket::Connection::is_active(socket__connection)) // @TODO
|
||||||
socket__connection->get_input_stream()->read_all_async( // | read_async @TODO
|
socket__connection->get_input_stream()->read_all_async( // | read_async @TODO
|
||||||
buffer,
|
buffer,
|
||||||
sizeof(
|
sizeof(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user