GIO is striving to provide a modern, easy-to-use VFS API that sits at the right level in the library stack, as well as other generally useful APIs for desktop applications (such as networking and D-Bus support). The goal is to overcome the shortcomings of GnomeVFS and provide an API that is so good that developers prefer it over raw POSIX calls. Among other things that means using GObject.
Questions tagged [gio]
189 questions
0
votes
1 answer
How to implement a tcp server in GTK based application using GIOChannel
I have got below sample from stackoverflow itself.
#include
#include
gchar *buffer;
gboolean
network_write(GIOChannel *source,
GIOCondition cond,
gpointer data)
{
return…
user2053794
0
votes
1 answer
Write Glib::ustring async to file with Glibmm (Gio::File)
I just could not find any example code to asynchronously write a Glib::ustring (or simply a string for that matter) to a file using glibmm (Gio::File).
Can any one provide an example or link to one?
user1965150
0
votes
1 answer
Edit gsettings in a C++
I'm trying to edit a gsetting through a C++ program.
I've read this question and I'm able to get the value. If I try to set it (using set_uint method), change seems to be made (if I re-read it shows the new value) but, if I check manually, it is not…

Mirko
- 75
- 1
- 9
0
votes
1 answer
GFileMonitor - g_signal_handler_block "changed" signal doesn't block handler?
All,
This may take a moment to set up. I have a small editor project I've worked on the past several months[1]. I originally wanted to implement an inotify watch on the current editor file to protect against modification by a foreing process. I…

David C. Rankin
- 81,885
- 6
- 58
- 85
0
votes
1 answer
GTK GIO How to read reply sent by server
I wanted to write a client server thing using gio socket in gtk and I found a sample code to send data to server but, the more thing i want is to read the data/reply sent by the server. The below is sample code
#include
#include…

Swapnil
- 389
- 5
- 22
0
votes
1 answer
How to use Gnome GIO to read a file by chunks in non-blocking way?
What is the right (GIO/Glib/GTK/Gnome) way to process GInputStream in non-blocking manner and chunk-by-chunk?
I have an application which is downloading (through libsoup) and processing a data stream in chunks and doing other actions in parallel. I…

JustAMartin
- 13,165
- 18
- 99
- 183
0
votes
1 answer
How to specify source address for source-specific multicasting in Gstreamer
I'm trying to set up a gstreamer1.0 client to receive a source specific multicast. It's clear how to set the group ip for the multicast, but I don't see any properties to set the source address. …

Matthias
- 1,153
- 2
- 10
- 15
0
votes
1 answer
Problem with GFile
I have a:
GFile* gf = g_file_new_for_path(file_path);
in my code. But when i try to compile it, I see error:
Undefined reference to: 'g_file_new_for_path'
In include section I have #include
What's wrong in this code?

0xAX
- 20,957
- 26
- 117
- 206
0
votes
1 answer
how can I synchronize a gtk::label with the creation or suppression of a file in a directory?
I have a program who lists all files in the working directory (I use glib for doing this), then I screen this list in a GtkWindow trough a Gtk::Label. I screen the window by using run(),
Glib::RefPtr app =…

The Unholy Metal Machine
- 1,093
- 2
- 17
- 36
0
votes
1 answer
How to achieve client server communication using GSOCKET
I want to use gio and glib to create client-server communication. However, I'm getting confused with GSocket. Can someone give some examples.
Also, how can GMainLoop be helpful in this?
0
votes
1 answer
How to properly decompress a file with GIO?
GIO provides a Zlib converter to decompress a file. The decompression function takes the output buffer size in parameter.
Is it possible to know the size this buffer should have before decompressing the file ? If not, what is the convention about…

azmeuk
- 4,026
- 3
- 37
- 64
0
votes
1 answer
gnomevfs or gio?
For async IO using Python, is it preferable to rely on gio or gnomevfs?
Also, which one is more "cross-platform"?

jldupont
- 93,734
- 56
- 203
- 318
0
votes
1 answer
Specifying ipv6 interface using glib/gio
I'm trying to use the Gnome glib/gio C library to create a client program to connect to a server via IPv6. My server box has a link local IPv6 address:
inet6 addr: fe80::2d0:c9ff:feda:99e0/64 Scope:Link
So, I to access it, I have to tell the client…

mjohnson
- 33
- 1
- 6
0
votes
1 answer
Python,GioSettings create key
from gi.repository import Gio
Gio.Settings("org.gnome.desktop.background").set_string("foo", "bar")
But problem is, that key "foo" is not defined, is there a way how to create this key using Python?
I want it to store some users desktop…

Ondřej Kolín
- 1,348
- 1
- 11
- 15
0
votes
2 answers
How do I control the outbound port when sending a message via a TCP connection with a GSocket?
I am using C, Linux, and a GIO GSocket to build a small application to communicate with a digital projector via TCP. The socket connects successfully and I am able to send messages to the projector successfully. My problem is that I am not able to…

DrRocket
- 215
- 2
- 14