Here is the. NET Named Pipes solution.
- Namedpipenative: This class communicates with Kernal32.dll to implement named Pipes, which contain some common methods and constants.
- Namedpipewrapper: This class is a wrapper for namedpipenative.
- Basepipeconnection: This is an abstract class that defines a method for naming pipes to connect, read, and write data. This class is inherited from Clientpipeconnection and serverpipeconnection, and is used in client and server-side applications, respectively.
- Clientpipeconnection: Used by client applications, using named Pipes and server communication.
- Serverpipeconnection: Allows a named pipe server to create a connection and communicate with the client.
- Pipehandle: Saves the local handle to the operating system and the current state of the pipe connection.
Protocol: Write: Write a length (4 bytes) before writing the actual content
READ: Read the length First (4 bytes), then read the actual content
Detailed reference: Https://github.com/myjackbase/Yzmeir.NamedPipes
C + + Named Pipes communicate with WinForm across processes