Re: Event-driven programming



Hi!

Maybe you can consider designing your system around Bonobo. In Bonobo
you have IDL interfaces for distributed event programming. I am sorry
not to be very precisse but current I am not yet a bonobo hacker ;-)

Cheers

-- Alvaro

El 24 Apr 2001 20:15:46 +0200, dLux escribió:
Hello,

I have  a question regarding  to the event-driven programming  in Gtk.
I  have  read  the  Gtk::cookbook,  so  the  question  is  quite  more
advanced than the things found there.
  I  want  to design  a  general  event-driven mechanism  which  works
between  processes,  not only  inside  a  single  program. I  want  to
declare system-global names  (imagine this like file  names) for data,
and I want to  install handlers for this file changes.  I think I make
a pipe  with the system-global name  in a specified name,  e.g. I will
make a  pipe in /tmp/comm/todo_data.  But the  problem is that  a pipe
is  only one  good for  one-to-one communication.  I want  one-to-more
communication without too much complexity.
  Currently I  am thinking about a  daemon, which binds a  unix domain
socket, and accepts  connections. If someone writes to  the socket, it
multiplexes  that  to the  other  sockets.  Sophisticated methods  can
also  be developed  (it  can maintain  subscriber's  list for  events,
etc).
  Does anyone has more elegant solution for this problem?

dLux
--
              Isten ovja a kepernyot! God save the screen!

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]