Results 1 to 5 of 5

Thread: Ultimate solution for Qt cross-platform IPC

  1. #1

    Question Ultimate solution for Qt cross-platform IPC

    I'm looking for a best solution to make IPC between the client and the server, so that it works cross-platform. Hopefully for S60 too, in future.

    What's the best way to do this?

    Ex. Is QSharedMemory + QSystemSemaphore method working? If does, can someone show me a good example?

    Link: Inter-Process Communication in Qt

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Ultimate solution for Qt cross-platform IPC

    How about QxtRPCService or QxtRPCPeer? They are able to transmit signals over any QIODevice and a network connection, respectively.
    J-P Nurmi

  3. #3

    Smile Re: Ultimate solution for Qt cross-platform IPC

    Hmm... Sounds very interesting and promising.

    More info or examples? Are you sure, that this will be working with S60 for example?

    And by client and server, I mean two processes, not over the network. AKA client-engine architecture.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Ultimate solution for Qt cross-platform IPC

    Quote Originally Posted by ManuMies View Post
    More info or examples?
    At least something can be found in trunk/examples and trunk/tests/unit/network/rpc.

    Are you sure, that this will be working with S60 for example?
    Well, there's no platform specific code. It's all written with pure Qt. Provided that all involved classes were already ported to the S60 tech preview, it should work. Let us know if it doesn't...

    And by client and server, I mean two processes, not over the network. AKA client-engine architecture.
    QxtRPCPeer is just provided for convenience. The base class does all the work. The device could be for example a local socket as well.
    J-P Nurmi

  5. #5

    Unhappy Re: Ultimate solution for Qt cross-platform IPC

    I've understood, that QSocket is not working with S60, so I guess this won't either.

    How about that QSharedMemory? Could that do the trick?

Similar Threads

  1. QT Creator, cross platform program.
    By kazek3018 in forum Newbie
    Replies: 8
    Last Post: 20th December 2008, 23:13
  2. Cross platform advice
    By tntcoda in forum Installation and Deployment
    Replies: 1
    Last Post: 15th October 2008, 17:58
  3. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:41
  4. Weird Cross Platform Printing Problems
    By igor in forum Qt Programming
    Replies: 7
    Last Post: 7th August 2007, 16:25
  5. Cross compile QT/X11 for platform xscale-elf
    By nmkarvekar in forum Installation and Deployment
    Replies: 0
    Last Post: 19th May 2006, 07:20

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.