[Qt-interest] Sending window messages between Qt processes

Bob Hood bhood2 at comcast.net
Sun Apr 19 01:03:49 CEST 2009


I'll have a look, but I've already had a foray into Windows "pipes" for
this solution, and did not have good luck (due to their client/server
nature, and how they have to be handled when using overlapped I/O).

Thanks again.


Marco Borm wrote:
> Hi Bob,
>
> I understand BUT QLocalServer/QLocalSocket uses named pipes on Windows 
> or domain sockets on Linux/Unix. This has nothing to do with TCP/IP 
> and/or networking.
> This is the state of the art for IPC communication.
>
> Greetings,
> Marco
>
> Bob Hood wrote:
>> Thank you, Marco.
>>
>> We used a TCP/IP-based solution in the past for IPC (I specialize in 
>> client/server networking).  We are moving away from it, however, 
>> because our customers have had endless issues with their firewalls -- 
>> and Vista made the situation the worst it's ever been -- just to have 
>> applications running on the same machine talk to each other.  There 
>> are less-intrusive ways (like QSharedMemory).
>>
>> So, been there, done that.  :)
>>
>>
>> Marco Borm wrote:
>>> Hi,
>>>
>>> Maybe this is something for you?
>>> http://doc.trolltech.com/4.5/qlocalserver.html
>>>
>>> Marco
>>>
>>> Bob Hood wrote:
>>>> Is there a non-platform-specific way of posting user-defined window
>>>> messages between Qt GUI processes?
>>>>
>>>> I have several stand-alone applications that are exchanging data via
>>>> QtSharedMemory, but they are each using timers to poll the shared memory
>>>> segment for changes.  What I'd rather do is have a process store its
>>>> window id into the shared memory so that other processes can notify it
>>>> when data has been sent through the shared memory.  That way I can get
>>>> rid of the timers and polling.  However, I need this to be
>>>> cross-platform (Windows, Linux, Mac), so I don't want to use
>>>> platform-specific code.
>>>>
>>>> Any advice, or links to examples, is appreciated.  Thanks.  :)
>>>>
>>>>
>>>>   
>> ------------------------------------------------------------------------




More information about the Qt-interest-old mailing list