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("",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

You may find the code here: 
Sorry, there are no docs at this moment since the API will probably

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

Thank you,

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