Skip to content

This is repository contains implmentation for Named-Pipe Server in C#

Notifications You must be signed in to change notification settings

viv2793/named-pipe-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Named-Pipe-IPC

This is repository contains implmentation for Named-Pipe Server as a Console Application in C#.

Windows Named-pipe Documentation : https://docs.microsoft.com/en-us/windows/win32/ipc/named-pipes

Background

Recently, I came across a requirement where I needed to communicate between two different running executables(.exe) where one executable was written in C# and second executable was written in Golang. So I decided to use named-pipe as a way to implement IPC. This repo contains named-pipe server implementation as a Console Application. There is another repo which creates named-pipe client for IPC. That client is purely implemented in Golang.

Steps to run -

  • Download and install Visual Studio (Visual Studio 2019 Community Edition has been used to write this)
  • Open NamedPipe.sln in Visual Studio
  • Build this project by clicking on the build option given at top bar of Visual Studio.
Build -> Build Solution
  • Open powershell(Windows) and navigate to the path project path named-pipe-ipc/NamedPipe/bin/Debug/netcoreapp3.1 and run below command in powershell -
NamedPipe.exe
  • The above command will run namedpipe server and the server can now receive messages from any named-pipe client.
  • Key 'q' on the keyboard has to be pressed to stop the server.

Note - This is supports Windows platform only.

About

This is repository contains implmentation for Named-Pipe Server in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages