From: "Ara.T.Howard" Date: 2005-10-11T21:24:38+09:00 Subject: Re: event based model - best way to implement? On Tue, 11 Oct 2005, snacktime wrote: > I am currently using perl's POE to communicate with the asterisk manager > interface, but I would like a ruby implementation. A server will connect to > asterisk and read events as they become available. The webserver will > connnect periodically to retrieve any available events and to optionally > send more requests. > > My first thought was to use a simple select loop in the server combined with > observers, and have the webserver communicate via drb. I could use http for > the server also to make it easy for ajax calls to communicate directly to > the server (proxied via apache). > > The asterisk manager interface sends events to the connected client (my > server) pretty much ad hoc whenever asterisk has something to report. In > other words requests and responses are not necessarily sequential. > > Does a simple select loop sound like the way to go here? are you on windows? -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================