Difference between revisions of "SimpleIPC"

From Free Pascal wiki
Jump to navigationJump to search
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Simple IPC is a Freepascal unit (and Lazarus components) that allows interprocess communication (IPC) between freepascal programs.
+
'''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.
 
It allows two executables to communicate.
  
 
==Advantages of SimpleIPC==
 
==Advantages of SimpleIPC==
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.
+
 
 +
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,
 
SimpleIPC can be used to communicate between programs to make simple communication systems, plugin systems and much more,
  
The lazarus help system itself, uses SimpleIPC.
+
==Use Cases==
 +
 
 +
The [[Help protocol|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==
 
==Send Messages to Other Programming Languages==
For IPC between freepascal 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 multiple 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==
 +
* [https://www.freepascal.org/docs-html/current/fcl/simpleipc/index.html Official FCL documentation for SimpleIPC unit]
 +
 
 +
 
 +
[[Category:FPC]]
 +
[[Category:Lazarus]]
 +
[[Category:Inter-process communication]]

Revision as of 16:20, 28 July 2020

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