[Qt-interest] Sending window messages between Qt processes

Marco Borm qt-lists at retrodesignfan.eu
Sat Apr 18 23:44:48 CEST 2009


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.  :)
>>>
>>>
>>>   
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   




More information about the Qt-interest-old mailing list