Frage

Does anyone now where i can find some good tutorials / code samples regarding networking in gtk / glib. I'm trying to write a client application that connects to a simple server that echos back what it receives, using Gtk2 and i'm not sure how to go about it. I want to do async read / writes without using threads but i'm not sure what is the best approach. The API reference isn't much help - GIOChannel, GIOStream, GSocketClient, etc - which one to use?

The fallback would be to use blocking IO in another thread.

I'm not interested in portability.

"Rant: How do the GTk / GLib developers expect people to use their framework without good documentation? Why do i even bother when i could do it using QT. I wan't to learn more C, thats why i bother!"

Keine korrekte Lösung

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top