SimpleIPC

From Lazarus wiki
Revision as of 18:15, 12 July 2020 by Zoran (talk | contribs)
Jump to navigationJump to search

Simple IPC is a Free Pascal unit (and Lazarus components) that allows interprocess communication (IPC) between Free Pascal programs.

It allows two executables to communicate.

Advantages of SimpleIPC

You can create communication systems without requiring low level sockets programming of your own. SimpleIPC does the grunt work of IPC for you and makes a nice high level wrapper around lower level IPC mechanisms, so you don't have to program them yourself.

SimpleIPC can be used to communicate between programs to make simple communication systems, plugin systems and much more,

Use Cases

The Lazarus help system itself, uses SimpleIPC.

Some fpGUI tools and demos use IPC, for example, to detect if the program is already running (single instance)

Send Messages to Other Programming Languages

For IPC between Free Pascal programs and other programs written in any language (C++, Delphi, GoLang, etc.) see SimpleIPC Library which allows you to use SimpleIPC not just in FPC and Lazarus, but in multiple programming languages.

See also

Official FCL documentation for SimpleIPC unit