Results 1 to 5 of 5

Thread: How to communicate between two different exe

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to communicate between two different exe

    Hi,
    I'd like to know your opinion on how to communicate between two different exe, at the moment I'm investigating on the Solution QtSharedMemory, but maybe there are some other ways.
    Both the executable are developed by me using qt.
    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to communicate between two different exe

    You could use sockets or pipes as well.

  3. #3
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: How to communicate between two different exe

    I know about QTcpSocket, but does Qt have support for pipes? I'd prefer a cross-platform solution.
    Software Engineer



  4. #4
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to communicate between two different exe

    tcp sockets then. the assistant works this way (there is an example or two in qt about this subject).

  5. #5
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to communicate between two different exe

    If both applications run on the same machine I'd recommend the shared memory solution. Alternately you could also use files, or the already mentioned sockets and pipes.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.