Re: [gtk-list] Signals



On 23 Dec, Sascha Ziemann shouted:
->  Hi,
->  
->  it would be nice to be able to send signals from one application to
->  another.
->  
->  Example: You have a master application with some toggle buttons and some
->  client applications. Each client is connected to its toggle button.
->  Pressing the toggle button should start the client, releasing the toggle
->  button should close the client. But if the client closes itself, the
->  toggle button needs to be released, too. This requires some messages
->  between the master and clients.
->  
->  I think it not very difficult to use Sys V IPC messages to send signals

on the same machine its fine, across a network (the apps could be on
different machies) not so.  u'd then need to have a protocol chose
between tcp/ip and sysv ipc, depending on where the other app is, and
then u need authentication too. GNOME is working on this using ILU.
alternatively you could use the Xserver to do this usign a series of
ClientMessage event s (I have already implemented this ro Enlightenment
- its easy to do, removes the need to know if the app is ont he same
machine or not and also handles authentication due to X's out
authentication).

->  between applications. Is anybody here, who did already something
->  similar?
->   
->  -- http://www.ping.de/sites/aibon/
->  

-- 
+------------------------------------------------------------------------------+
|raster@rasterman.com     /\___ /\ ___/||\___ ____/|/\___  raster@redhat.com   |
|Carsten Haitzler         | _ //__\\ __||_ __\\ ___|| _ /  Red Hat Advanced    |
|218/21 Conner Drive      || // __ \\_ \ | |   \ _/_|| /   Development Labs    |
|Chapel Hill NC 27514 USA ||\\\/  \//__/ |_|   /___/||\\   +1 919 547 0012 282 |
|               For pure Enlightenment  http://www.rasterman.com/              |
+-============================================================================-+








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