Forum > LCL

IPC or Pipe?

(1/2) > >>

Dibo:
Hi,

I am new in this things. I need very simple solution for communication between two applications:

1. I will send only text (xml)
2. Must be cross platform (I need for windows and linux)
3. Must be some standard solution - easy implementation in clients written in other language (python, C++, etc)
4. Server should be able to response to client. I need only simple response (true, false)

All points except 4 meets SimpleIPC. It's exactly what I need, but don't know how to send answer to client. I need response, because I want force simple "greeting" in clients with some params. Server should accept or refuse this greeting and client should know the answer. The only way is create another connection from server to client?
I am looking now on pipes, but I don't know how to use it. Documentation is without example:
http://www.freepascal.org/docs-html/fcl/pipes/index.html

Regards

P.S. Is it possible to detect IPC/Pipe client file path?

javivf:
You can use TSimpleIPCServer and TSimpleIPCClient at same side, then you have two-way IPC mechanism ;)

client := TSimpleIPCServer + TSimpleIPCClient;
server := TSimpleIPCServer + TSimpleIPCClient;

Dibo:
Yes, I wrote about this above :P . I thought that the IPC has a mechanism of signals or something similar

theo:

--- Quote from: Dibo on February 02, 2011, 11:20:52 am ---Yes, I wrote about this above :P . I thought that the IPC has a mechanism of signals or something similar

--- End quote ---

The term IPC does not stand for a specific technique: http://en.wikipedia.org/wiki/Inter-process_communication

Dibo:
Hm, maybe I just use TCP server on local host?

Navigation

[0] Message Index

[#] Next page

Go to full version