GithubHelp home page GithubHelp logo

ingwalt / named-pipe-ipc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viv2793/named-pipe-ipc

0.0 0.0 0.0 8 KB

This is repository contains implementation for Named-Pipe Client in Golang(go).

Go 100.00%

named-pipe-ipc's Introduction

named-pipe-ipc

This is repository contains implementation for Named-Pipe Client in Golang(Go).

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

Background

Recently, I came across a requirement that we needed to communicate between two different running executables where one executable was written in C# and second one executable was written in Golang. So I decided to use named-pipe as a way to implement IPC. This repo contains named-pipe client and named-pipe server implementation purely written in Golang.

There is an another repo which contains named-pipe server implementation in C#.

Steps to run

  • Clone the repo and run navigate to project repo directory.
  • Open windows powershell(Admin) and run server using below command
go run server.go
  • Above command would start a named-pipe server and this server can send/receive message from any named-pipe client.

  • Open windows powershell(Admin) and run client using below command

go run client.go
  • Note that above command would only start a named-pipe client which can connect to the already existing named-pipe server. So it is necessarry to run the server before running the client.

  • There is another repo which can be used for starting named-pipe server for IPC. This server is implemented in C#. Link - Named-Pipe Server Repo

Supported Platform/Version

  • This implemtation is only for Windows currently.
  • Go version used while writing - go 1.13

Credits -

named-pipe-ipc's People

Contributors

viv2793 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.