Portable network layer

2007-05-11 Thread Jonathan Winterflood
Hi,

I'm developing a gtk (gtkmm) app for both Windows and Linux.
So far so good, everything works, on both platforms

However, I'd like to add network functionality to the program: open a tcp
connection to a server, and grab data from it.
The protocol is a simple applicative one (not http), and I'm planning to run
this in a separate thread, updating the data in the main window.

What API are available to do this? anything already in gtk dependencies? (I
suppose one for the network and another for the threading(most probably
glib) )
I'd like to keep the dependencies to a strict minimum (preferably
bundle-able vs installable), free, and I only need basic functionality

Thanks,
Jonathan

-- 
Morpheus linux, c'est une question de VI ou de MORE
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: [SPAM] Portable network layer

2007-05-11 Thread Gabriele Greco
Jonathan Winterflood wrote:
 I'd like to keep the dependencies to a strict minimum (preferably
 bundle-able vs installable), free, and I only need basic functionality
   
If you want to avoid new dependencies you can use the sockets directly, 
the differences between winsock and the standard bsd sockets are mostly 
in the error management and can be solved with a few #defines and a call 
to WSAStartup() at the beginning of the program.

Please consider that you can also run the socket code in your main 
thread attaching the socket signal to the gtk main loop via gio channels.

If you want an higher level api you can try:

http://www.gnetlibrary.org/

---
Bye,
 Gabry


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Portable network layer

2007-05-11 Thread Alessandro Oliva
http://www.gnetlibrary.org/

Alessandro Oliva
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: [SPAM] Portable network layer

2007-05-11 Thread Jonathan Winterflood
Thanks,
Obviously gnetlibrary is in your good books :D
I also found SDL_net, but it requires SDL, and isn't _designed_ to go with
gtk even though it would probably be no problem.

I think I'd rather use gnet than tackle the specificities myself (let's stop
reinventing the wheel eh? :P)
Plus, gnet is just source, so I should just be able to compile it into my
binary, yay!

Jonathan

On 5/11/07, Gabriele Greco [EMAIL PROTECTED] wrote:

 Jonathan Winterflood wrote:
  I'd like to keep the dependencies to a strict minimum (preferably
  bundle-able vs installable), free, and I only need basic functionality
 
 If you want to avoid new dependencies you can use the sockets directly,
 the differences between winsock and the standard bsd sockets are mostly
 in the error management and can be solved with a few #defines and a call
 to WSAStartup() at the beginning of the program.

 Please consider that you can also run the socket code in your main
 thread attaching the socket signal to the gtk main loop via gio channels.

 If you want an higher level api you can try:

 http://www.gnetlibrary.org/

 ---
 Bye,
 Gabry


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list