On Tue, Jul 07, 2009 at 03:15:00PM +0000, Christian Menge wrote: > Hey Guys, > > Does Agar support any kind of Networking? Specificly I'm looking for non- > blocking UDP communications. I know that SDL offers this capability but was > not sure if we can access this through Agar.
You are free to use the networking API of your choice with Agar. If you're familiar with SDL_net, it will work fine. There is a simple networking API in Agar-Core itself (core/net_client.h, net_server.h), but it uses TCP, is unix-only, and is not yet officially documented. When performing network operations in a GUI application, you must make sure that calls which may possibly block (connect, read, write) do not cause the GUI to become unresponsive. Since Agar is thread-safe, this is easily done by just executing these operations in a separate thread. _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
