Re: exchanging data between different programs



On Friday 21 October 2005 09:52, Andreas Schropp wrote:
> hello,
>
> I wanted to write some GUI-application using
> gtkmm-2.0 that acts somewhat similar than a
> server application. So, there shall be the GUI
> permitting the manipulation of different things
> and a different part of code waiting on a string from
> another program (non-GUI) to arrive.
> I am quite a programming starter and I don't have
> any clue how to implement something like that.
> What to use? Signals, pipes, sockets??
>
> Until now, my server always freezes the GUI ...
>
> Thanks a lot in advance!!

Use a pipe, fifo or socket and connect the file descriptor for it into the 
main program loop with Glib::signal_io().connect().  See the documentation at 
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1SignalIO.html#a0

Chris




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