Hi all,Thank you for your responses, but I'm not looking for a socket/connection management library. (I will, for sure, if it's needed, and I 'll use your recommendations).
Now, I'm talking about Glib::IOChannel monitoring socket connections directly.
As API documentation for IOChannel states, an IOChannel can be created from a file descriptor that points to a opened file or to a socket(link).
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1IOChannel.html#078698e18f61bb75fe3fd33d82970f5dUse in the first case is well documented in http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-monitoring-io.html
This means than I can use a callback when there is data to read from a file or from a socket.
The use in the second case is not clear. The socket file descriptor is created with socket(), and is used with accept() to create a connection to a client. My intention is to use a callback when a client tries to connect to the server.
Any help about this? Thanks a lot, Fabrício Godoy escribió:
As well recomended to me, I recomend libassa (http://libassa.sourceforge.net/).2009/2/2 "Víctor M. Palacio Tárrega" <victorpalacio adtelecom es <mailto:victorpalacio adtelecom es>>Hi, I'm planning to manage remotely (or locally) a gtkmm graphical aplication through a network (or unix) socket. The use of Glib::IOChannel is not documented for use it in this case. I want a callback for a incoming connection, to accept it, treat received data and finally close the connection. Use of IOChannel documented is only when data is ready to read, after a connection is accepted. There exists some tutorial or documentationt about IOChannel use with network sockets? There exist another Glib object for this use? Thanks in advance,-- Victor Palacio_______________________________________________ gtkmm-list mailing list gtkmm-list gnome org <mailto:gtkmm-list gnome org> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- //*Víctor M. Palacio Tárrega*//