glib
g_io_channel_unix_new() call results in SIGSEGV when client tries to re-establish connection
Hi I\'m trying to implement a WebSocket Server using the glib APIs. The server succeeds in handshaking and excahnaging messages with the client(Chrome Browser). The problem appears after I disconnect[详细]
2023-02-16 18:40 分类:问答Compiling GLib for iPhone?
Can GLib be compiled for iOS? If no开发者_运维知识库t, what other alternatives are there?If/when you manage to build it, you won\'t be allowed to use it in a retail application because of LGPL.Here yo[详细]
2023-02-16 07:06 分类:问答g_io_channel + socket = server , still didnt receive proper data and just get one client ? in C language
folks, if you dont mind please see following code : #include <glib.h> #include <gio/gio.h> // gio channel[详细]
2023-02-14 20:46 分类:问答What is the most efficient way to store a series of values with unknown size?
I have a function (say, named next_entity), that generates size_t values. The function acts as a generator, that is, it produces a new value on each call, and, finally, returns 0 as a sentinel.[详细]
2023-02-14 06:08 分类:问答GArray is not cleared on initialization as expected
I was having some weird Glib behavior, searched the internet a little and found this Glib tutorial, the second code block to be specific:[详细]
2023-02-14 03:23 分类:问答How to access GTimer provided by GLib in Perl?
I\'m writing an application using Perl and Gtk2-Perl that keeps track of elapsed time. It needs to perform a certain function when a count down timer expires. It would be nice if the timer generated a[详细]
2023-02-11 20:17 分类:问答gsocket (server mode) getting error?
i\'ve encoutered some issues again.. the script : #include <stdio.h> #include <stdlib.h> #include <gio/gio.h>[详细]
2023-02-11 06:33 分类:问答Implementing a GObject interface in C++
I try to implement a GType interface in C++ using Glibmm (part of Gtkmm). The object will be passed to an API in C. Unfortunately, the documentation for gtkmm does not cover many details of how it wra[详细]
2023-02-10 01:08 分类:问答How can I set the log level in glib
Is there a way to change the log level in glib so e.g. in a release version of an application the debug messages of g_debug won\'t be logged to the stdout? Do I really need to implement my own log han[详细]
2023-02-09 06:32 分类:问答segmentation fault on g_string_truncate ()?
When trying the following in C : g_string_printf(qbuf,\"INSERT INTO inbox (number, smsdate, text) VALUES (\'%s\',\'%04d-%02d-%02d %02d:%02d:%02d\', \'%s\')\",[详细]
2023-02-09 05:51 分类:问答