Browse Source

define socket protocol for gemini connection

CPP-GTK4
yggverse 3 months ago
parent
commit
a9dd41c978
  1. 4
      src/app/browser/main/tab/page.cpp
  2. 1
      src/app/browser/main/tab/page.hpp

4
src/app/browser/main/tab/page.cpp

@ -282,6 +282,10 @@ void Page::navigation_reload( @@ -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
);

1
src/app/browser/main/tab/page.hpp

@ -6,6 +6,7 @@ @@ -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>

Loading…
Cancel
Save