gnome-socket API proposal




I've designed a little API to make net connections for a GNOME app easier.

Basically you call gnome_socket_connect("www.gnome.org",80,...,callback)
and your callback will be called the first time when the comm is
established or in case of error. After the first time, it will be called
when data has arrived on the port.
This avoids to write code in the app for DNS lookup, socket(), connect(),
gdk_input_add() or similar, etc.

gnome_socket_listen implements the "server" part and it works in a similar
way.

You may find the code here: http://www.cli.di.unipi.it/~zunino/ 
Sorry, there are no docs at this moment since the API will probably
change.

Would a thing like this be useful?
Maybe for GNOME 2.0?

Thank you,
Zun.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]