[Freemint-list] Event triggered network

Thorsten Otto admin at tho-otto.de
Mon Oct 17 10:17:05 MSD 2016


On Monday 17 October 2016 08:00:15 WongCK wrote:
> Just thinking.... will there be any improvement in networking application
> if Mintnet becomes event driven? I mean most GEM program are in a loop
> waiting for an event, so instead of waiting on a socket and "hanging", the
> application can wait for the event telling it that some network data is
> ready for it. Of course overhead of Event management may negate any
> performance gain... i.e. an event come every time you have a packet of
> data...

I think there is no need to implement that in Mintnet. An application that 
relies on mintnet can just fork a thread that blocks on the socket, and then 
send the main thread a gem message if data is available.


More information about the Freemint-list mailing list