I need to write two applications that will speak with each other on the same computer.
what is the best way of doing it in Qt?
giesbert last edited by
by speaking, you mean inter process communication?
That depends on the platform you use...
On all platforms, you can use TCP/IP
On, at least Linux, you can use QDBus
Excuse me for such basic question,
but if I use TCP/IP , my comp have to be connected to the Internet even in case that I need communication between two inter processes?
Rahul Das last edited by
:) You can start from "here":http://developer.qt.nokia.com/doc/qt-4.7/examples-ipc.html :)
TCP /IP samples in "here":http://developer.qt.nokia.com/doc/qt-4.7/examples-network.html :)
andre last edited by
No, they do not need to be hooked to the internet for that. The address 127.0.0.1 points to "this computer" ("localhost") on all machines. Note that there are even more alternatives, like shared memory, local sockets, and also more high-level alternatives like "QxtRPCPeer":http://libqxt.bitbucket.org/doc/0.6/qxtrpcpeer.html class.
Thank for your help
I want to use QxtRPCPeer in the PEER mode.
Where can I get a simple example of its use?