I made a turn based game and would like to make a back end engine
running on Linux or Mac. The game is turnbased 2 player (think chess
like) but there can be many games going on at once. Speed would not be
the problem since not much data goes between players.
What I need is the following:
Make a Ruby application that is running in some idle loop, but when a
network data packet comes in to notify some event/delegate function to
process the request and go back to idle (or be doing something else).
I dont want polling of sockets, timers, etc etc. Also does Ruby have
event driven frameworks in general?
Thanks
···
--
Posted via http://www.ruby-forum.com/.
Take a look at eventmachine - http://rubyeventmachine.com/
···
Date: Fri, 2 Oct 2009 02:16:24 +0900
From: wyattbiker@gmail.com
Subject: Newbie: Does Ruby have event driven network libraries?
To: ruby-talk@ruby-lang.org
I made a turn based game and would like to make a back end engine
running on Linux or Mac. The game is turnbased 2 player (think chess
like) but there can be many games going on at once. Speed would not be
the problem since not much data goes between players.
What I need is the following:
Make a Ruby application that is running in some idle loop, but when a
network data packet comes in to notify some event/delegate function to
process the request and go back to idle (or be doing something else).
I dont want polling of sockets, timers, etc etc. Also does Ruby have
event driven frameworks in general?
Thanks
--
Posted via http://www.ruby-forum.com/\.
_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
There's also rev:
http://rev.rubyforge.org/
···
On Thu, Oct 1, 2009 at 11:19 AM, Ehsanul Hoque <ehsanul_g3@hotmail.com>wrote:
Take a look at eventmachine - http://rubyeventmachine.com/
> Date: Fri, 2 Oct 2009 02:16:24 +0900
> From: wyattbiker@gmail.com
> Subject: Newbie: Does Ruby have event driven network libraries?
> To: ruby-talk@ruby-lang.org
>
> I made a turn based game and would like to make a back end engine
> running on Linux or Mac. The game is turnbased 2 player (think chess
> like) but there can be many games going on at once. Speed would not be
> the problem since not much data goes between players.
>
> What I need is the following:
>
> Make a Ruby application that is running in some idle loop, but when a
> network data packet comes in to notify some event/delegate function to
> process the request and go back to idle (or be doing something else).
>
> I dont want polling of sockets, timers, etc etc. Also does Ruby have
> event driven frameworks in general?
>
> Thanks
> --
> Posted via http://www.ruby-forum.com/\.
>
_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it
now.
restaurants - Search
--
Tony Arcieri
Medioh/Nagravision
Ehsanul Hoque wrote:
Take a look at eventmachine - http://rubyeventmachine.com/
Looks nice. I hope it works on Mac so I can use it.
Thanks
···
--
Posted via http://www.ruby-forum.com/\.