I would like to create a server and client application that communicate via sockets using GIO. GSocketService and GSocketClient seem be perfect for this purpose but unfortunately I couldn’t find some tutorial or example code (that a GLib, GIO,… newbie can understand). Does anybody know some good resources or can post example code here?
I would like to create a server and client application that communicate via sockets
Share
I finally managed to create both a simple server and client using glib and gio.
My server looks like this:
and this is the corresponding client:
Note though, that I am still new to glib, gio and even C, so double check my code before using it.