Results 1 to 3 of 3

Thread: What is the best way to share data between 2 programs?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What is the best way to share data between 2 programs?

    Are these two applications going to be run on the same machine? Is it going to be Unix only system?

    If yes, you can take a look at named pipes, FIFOs, Unix domain sockets and shared memory. On windows named pipes and shared memory are available too, but I'm not sure about the rest. You can also consider DBUS (there should be windows port, but I'm sure if windows version of Qt supports it).

    Which one to use depends on the protocol you want to use to exchange data. There won't be any problems with GPL, if you are going to have two separate applications that just exchange the data.

    Edit: Personally I would consider Unix domain sockets and DBUS (esp. if you can use Qt for the driver as well).
    Last edited by jacek; 27th May 2008 at 16:35.

Similar Threads

  1. Replies: 4
    Last Post: 19th October 2007, 19:47
  2. Data model
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2007, 12:14
  3. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. Help me to use QtSharedMemory to share the data objects
    By gtthang in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 11:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.