PDA

View Full Version : client/server without port



evgenM
13th April 2006, 08:45
i need provides communication capabilities between
different applications on localhost
but i can't reserve port for it
so i need something like Qtopia::QCopChannel

how i can realise this?

wysota
13th April 2006, 16:46
Use shared memory, message, queues, shared resource (like a file), unix domain sockets or search google for InterProcess Communication (IPC). You can also try to use already existing frameworks like dcop or Corba. BTW. Why can't you use a network socket?

evgenM
14th April 2006, 08:00
i just want to use Unix socket
but find nothing in Qt
so u right network socket is single way

wysota
14th April 2006, 12:10
It's not the only way. You can probably create a unix domain socket (or simply a pipe) and then pass its descriptor to QTcpSocket (or QUdpSocket). And you can use all other mentioned solutions.