It is such a shame, that to use functions like io_add_watch(), you have to have a connection to X. This prevents us from creating "real" server-applications, which can run on a machine without any graphical user-interface running on it.
Does anyone know how to get around this? Is there another extension which can do the same as io_add_watch(), timeout_add() and more? Or is it possible to "fake a X-server"?
The CommandWidget is nearly like a
terminal and allows the user to issue commands to a shell
and view the result in a GtkTextView widget.
This is a sample code to demonstrate the use of
Gtk::io_add_watch(). The main goal of this function
is to handle socket IO without blocking. Socket polling is done
in Gtk::main() loop. You don't need to care about socket polling.
This task is done by Gtk and Glib.
Commenti recenti
47 settimane 2 giorni fa
48 settimane 1 giorno fa
48 settimane 5 giorni fa
51 settimane 1 giorno fa
1 anno 19 settimane fa
1 anno 23 settimane fa
1 anno 27 settimane fa
1 anno 27 settimane fa
1 anno 27 settimane fa
1 anno 44 settimane fa