Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read/write example codes for TPipeServer and TPipeClient components and security check

I need IPC between a windows service and a GUI application both written in Delphi 2010. I decided to use named pipe for this. I built and installed successfully Russell Libby's TPipeServer and TPipeClient components (link). I followed other answers like this. But my service received only empty messages from the client. After many test I concluded that I was using those components erroneously, so i don't want to post any code here. So I'm looking for a valid example about how these components work in order to write/read strings in a named pipe (from client to server and viceversa). Any help is really appreciated, even using other free named pipes components or source codes. Thank you.

Edit: I need a valid way to pass security check in windows server 2008 / windows vista / windows 7

like image 794
Francesco Palladino Avatar asked Feb 21 '12 01:02

Francesco Palladino


1 Answers

The Cromis-IPC component by Iztok Kacin is a versatile IPC communication Delphi component utilizing windows named pipes. On the given link is a client/server example, and in the source code of the component is a full example.

The Cromis IPC can be used for process communication within the same computer as well as communication between computers on a network. Permissions are easy to handle when doing communication within the same computer. For a detailed description how to handle permissions, see windows doc Named Pipe Security and Access Rights.

like image 57
LU RD Avatar answered Nov 15 '22 15:11

LU RD