Thanks for your reply. I have looked at LuaSockets but it is the
independence from IUP's main loop that I'm trying to avoid. I really do not
want to poll non-blocking sockets in an idle callback (excessive CPU usage)
or timer callback (poor latency) and as you said, a multi-threaded solution
would be complex.
Rather than deal with that complexity, it would be easier for me to
integrate socket support into IUP's main loop myself, at least for the
GTK+/Motif versions - I'm not familiar with the win32 way of doing things.
On 19 October 2012 12:42, Antonio Scuri <[email protected]> wrote:
> Hi,****
>
> ** **
>
> I haven’t used but I recommend LuaSockets:****
>
> ** **
>
> http://w3.impa.br/~diego/software/luasocket/ ****
>
> ** **
>
> It is independent from the IUP main loop. ****
>
> ** **
>
> In IUP you can implement the loop for receiving data in two forms, using
> an idle callback or using a timer. You can also use multithread, but it is
> more complex to handle.****
>
> ** **
>
> Best,****
>
> Scuri****
>
> ** **
>
> *From:* Matthew Bucknall [mailto:[email protected]]
> *Sent:* sexta-feira, 19 de outubro de 2012 07:55
> *To:* [email protected]
> *Subject:* [Iup-users] Portable Sockets****
>
> ** **
>
> Hello,****
>
> ** **
>
> I am looking for a way to perform portable asynchronous TCP/UDP
> communication integrated with IUP's main loop. Has anyone done this before
> or got any recommendations?****
>
> ** **
>
> Thanks,****
>
> Matt.****
>
> ** **
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users