glib network connection example
问题 Can you advice some network connection example made with glib/gio libraries. There is quite a good reference manual, but no full example even for basic things. It will be used for simple sending and receiving files as a part of program. 回答1: How about like this? There is similar question at Fetch a file from web: in GTK using C #include <gio/gio.h> int main() { const gchar *uri = "https://stackoverflow.com/questions/5758770/"; GFile *in; GFile *out; GError *error = NULL; gboolean ret; g_type