define socket protocol for gemini connection

This commit is contained in:
yggverse 2024-09-16 08:29:46 +03:00
parent 3c9b964a6b
commit a9dd41c978
2 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,10 @@ void Page::navigation_reload(
Gio::TlsCertificateFlags::NO_FLAGS
);
socket__client->set_protocol(
Gio::Socket::Protocol::TCP
);
socket__client->set_timeout(
15 // @TODO
);

View File

@ -6,6 +6,7 @@
#include <giomm/outputstream.h>
#include <giomm/simpleaction.h>
#include <giomm/simpleactiongroup.h>
#include <giomm/socket.h>
#include <giomm/socketclient.h>
#include <giomm/socketconnection.h>
#include <glibmm/i18n.h>